compiler\ccgexprs.nim

fixes 'nil' literal echoing
This commit is contained in:
Araq
2015-05-02 08:36:18 +02:00
parent 7d3a6b42d9
commit 16a51ffc97

View File

@@ -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