From 16a51ffc974672fdb883e92fa5fbb0e77d14c9ea Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 2 May 2015 08:36:18 +0200 Subject: [PATCH] compiler\ccgexprs.nim fixes 'nil' literal echoing --- compiler/semfold.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/semfold.nim b/compiler/semfold.nim index 941d47bb47..f533c19b43 100644 --- a/compiler/semfold.nim +++ b/compiler/semfold.nim @@ -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