mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
Hope this fixes #24369, happy for any feedback on the PR.
(cherry picked from commit 1fddb61b3b)
11 lines
139 B
Nim
11 lines
139 B
Nim
type
|
|
Bar = object
|
|
b: int = 1
|
|
|
|
Foo = object
|
|
f: array[1, Bar]
|
|
|
|
proc `=copy`(dest: var Bar, source: Bar) {.error.}
|
|
|
|
discard Foo()
|