revert new scope for 'if'

This commit is contained in:
Araq 2013-05-02 00:36:06 +02:00
commit 1dd01e5891
8 changed files with 182 additions and 6 deletions

View file

@ -100,7 +100,7 @@ proc newSymS(kind: TSymKind, n: PNode, c: PContext): PSym =
proc newSymG*(kind: TSymKind, n: PNode, c: PContext): PSym =
# like newSymS, but considers gensym'ed symbols
if n.kind == nkSym:
if n.kind == nkSym:
result = n.sym
InternalAssert sfGenSym in result.flags
InternalAssert result.kind == kind