diff options
Diffstat (limited to 'compiler/semfold.nim')
-rw-r--r-- | compiler/semfold.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semfold.nim b/compiler/semfold.nim index 466df2e4e..10361eb79 100644 --- a/compiler/semfold.nim +++ b/compiler/semfold.nim @@ -703,7 +703,7 @@ proc getConstExpr(m: PSym, n: PNode; idgen: IdGenerator; g: ModuleGraph): PNode of nkAddr: var a = getConstExpr(m, n[0], idgen, g) if a != nil: - result = n + result = nil # don't fold paths containing nkAddr n[0] = a of nkBracket, nkCurly: result = copyNode(n) |