diff options
-rw-r--r-- | compiler/semmagic.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semmagic.nim b/compiler/semmagic.nim index 6ce6fc12e..df2c084a1 100644 --- a/compiler/semmagic.nim +++ b/compiler/semmagic.nim @@ -381,7 +381,7 @@ proc magicsAfterOverloadResolution(c: PContext, n: PNode, if n[0].sym.name.s == "=": result = semAsgnOpr(c, n) else: - result = n + result = semShallowCopy(c, n, flags) of mIsPartOf: result = semIsPartOf(c, n, flags) of mTypeTrait: result = semTypeTraits(c, n) of mAstToStr: |