bugfix: tmacros1.nim works
This commit is contained in:
parent
ecb3590102
commit
997e7d1e5b
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
output: "hellow"
|
||||
output: "Got: 'nnkIntLit' hi"
|
||||
"""
|
||||
|
||||
import
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue