bugfix: tmacros1.nim works

This commit is contained in:
Araq
2011-04-05 01:45:28 +02:00
parent ecb3590102
commit 997e7d1e5b
2 changed files with 3 additions and 2 deletions

View File

@@ -303,7 +303,8 @@ proc evalVariable(c: PStackFrame, sym: PSym, flags: TEvalFlags): PNode =
if result == nil: result = emptyNode
return
result = IdNodeTableGet(x.mapping, sym)
if not aliasNeeded(result, flags): result = copyTree(result)
if result != nil and not aliasNeeded(result, flags):
result = copyTree(result)
if result != nil: return
x = x.next
result = emptyNode

View File

@@ -1,5 +1,5 @@
discard """
output: "hellow"
output: "Got: 'nnkIntLit' hi"
"""
import