diff options
Diffstat (limited to 'tests/arc/tdup.nim')
-rw-r--r-- | tests/arc/tdup.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/arc/tdup.nim b/tests/arc/tdup.nim index 3f64061fb..b77f5c6eb 100644 --- a/tests/arc/tdup.nim +++ b/tests/arc/tdup.nim @@ -40,7 +40,7 @@ proc inc(x: sink Ref) = proc inc(x: sink RefCustom) = inc x.id[] -proc `=dup`(x: var RefCustom): RefCustom = +proc `=dup`(x: RefCustom): RefCustom = result.id = x.id proc foo = |