diff options
Diffstat (limited to 'tests/arc/tarc_orc.nim')
-rw-r--r-- | tests/arc/tarc_orc.nim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/arc/tarc_orc.nim b/tests/arc/tarc_orc.nim index 0e6208b4a..f2c7de2fc 100644 --- a/tests/arc/tarc_orc.nim +++ b/tests/arc/tarc_orc.nim @@ -171,3 +171,16 @@ block: # bug #23858 return Object() discard fn() doAssert x == 1 + +block: # bug #24147 + type + O = object of RootObj + val: string + OO = object of O + + proc `=copy`(dest: var O, src: O) = + dest.val = src.val + + let oo = OO(val: "hello world") + var ooCopy : OO + `=copy`(ooCopy, oo) |