mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-07 12:24:19 +00:00
bugfix: tmacros1.nim works
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user