fixes #12670 [backport] (#12693)

This commit is contained in:
Andreas Rumpf 2019-11-20 19:08:16 +01:00 • committed by GitHub
commit 78e02d174d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 1 deletions

View file

@ -471,7 +471,8 @@ template handleJmpBack() {.dirty.} =
dec(c.loopIterations)
proc recSetFlagIsRef(arg: PNode) =
arg.flags.incl(nfIsRef)
if arg.kind notin {nkStrLit..nkTripleStrLit}:
arg.flags.incl(nfIsRef)
for i in 0 ..< arg.safeLen:
arg.sons[i].recSetFlagIsRef