From ac56d3b0ede8d3bf42be6a8c014288baeab1907d Mon Sep 17 00:00:00 2001 From: alaviss Date: Mon, 26 Nov 2018 12:02:37 +0000 Subject: [PATCH] fixes #7365 --- compiler/semmagic.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: