From 16a51ffc974672fdb883e92fa5fbb0e77d14c9ea Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 2 May 2015 08:36:18 +0200 Subject: compiler\ccgexprs.nim fixes 'nil' literal echoing --- compiler/semfold.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') 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 -- cgit 1.4.1-2-gfad0 e7'>this commit This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log tree commit diff stats
path: root/.gitignore
blob: 1971a23cb0a89192d05050a5d5db02d768650b11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44