Merge branch 'master' of github.com:Araq/Nimrod

This commit is contained in:
Araq 2013-07-20 20:18:21 +02:00
commit 84534ce4b8
30 changed files with 894 additions and 494 deletions

View file

@ -187,7 +187,8 @@ proc usefulFact(n: PNode): PNode =
# if a:
# ...
# We make can easily replace 'a' by '2 < x' here:
result = usefulFact(n.sym.ast)
if n.sym.ast != nil:
result = usefulFact(n.sym.ast)
elif n.kind == nkStmtListExpr:
result = usefulFact(n.lastSon)