mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
compiler\ccgexprs.nim
fixes 'nil' literal echoing
This commit is contained in:
@@ -652,7 +652,7 @@ proc getConstExpr(m: PSym, n: PNode): PNode =
|
||||
result = copyNode(n)
|
||||
of nkIfExpr:
|
||||
result = getConstIfExpr(m, n)
|
||||
of nkCall, nkCommand, nkCallStrLit, nkPrefix, nkInfix:
|
||||
of nkCallKinds:
|
||||
if n.sons[0].kind != nkSym: return
|
||||
var s = n.sons[0].sym
|
||||
if s.kind != skProc: return
|
||||
|
||||
Reference in New Issue
Block a user