better be safe than sorry
This commit is contained in:
parent
0834cd63d9
commit
57c52d05df
1 changed files with 2 additions and 1 deletions
|
|
@ -1650,7 +1650,8 @@ proc semExpandToAst(c: PContext, n: PNode): PNode =
|
||||||
# Preserve the magic symbol in order to be handled in evals.nim
|
# Preserve the magic symbol in order to be handled in evals.nim
|
||||||
internalAssert n.sons[0].sym.magic == mExpandToAst
|
internalAssert n.sons[0].sym.magic == mExpandToAst
|
||||||
#n.typ = getSysSym("NimNode").typ # expandedSym.getReturnType
|
#n.typ = getSysSym("NimNode").typ # expandedSym.getReturnType
|
||||||
n.typ = sysTypeFromName"NimNode"
|
n.typ = if getCompilerProc("NimNode") != nil: sysTypeFromName"NimNode"
|
||||||
|
else: sysTypeFromName"PNimrodNode"
|
||||||
result = n
|
result = n
|
||||||
|
|
||||||
proc semExpandToAst(c: PContext, n: PNode, magicSym: PSym,
|
proc semExpandToAst(c: PContext, n: PNode, magicSym: PSym,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue