'let' within 'parallel' now works

This commit is contained in:
Araq 2014-09-22 08:34:05 +02:00
commit 8930ba50b9
4 changed files with 21 additions and 6 deletions

View file

@ -599,7 +599,7 @@ proc track(tracked: PEffects, n: PNode) =
addAsgnFact(tracked.guards, n.sons[0], n.sons[1])
notNilCheck(tracked, n.sons[1], n.sons[0].typ)
when false: cstringCheck(tracked, n)
of nkVarSection:
of nkVarSection, nkLetSection:
for child in n:
let last = lastSon(child)
if child.kind == nkIdentDefs and last.kind != nkEmpty: