summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-05-02 08:36:18 +0200
committerAraq <rumpf_a@web.de>2015-05-03 01:08:49 +0200
commit16a51ffc974672fdb883e92fa5fbb0e77d14c9ea (patch)
tree26362b6f225a51dbd8f8fb45ac6e4f623bd1c6c4 /compiler
parent7d3a6b42d9deb8eef0ee0f50ba3bee2476502a4f (diff)
downloadNim-16a51ffc974672fdb883e92fa5fbb0e77d14c9ea.tar.gz
compiler\ccgexprs.nim
fixes 'nil' literal echoing
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semfold.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semfold.nim b/compiler/semfold.nim
index 941d47bb4..f533c19b4 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