summary refs log tree commit diff stats
path: root/compiler/semexprs.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-05-19 23:17:16 +0200
committerAraq <rumpf_a@web.de>2013-05-19 23:17:16 +0200
commit1c9b4e5d33ff6bca8f345951b72018171d47e251 (patch)
tree9ca5b48233aea847a8818c4efe50d927d42f18da /compiler/semexprs.nim
parent7b36d3d6ff390cc512be06a2c065108fc059eb6f (diff)
downloadNim-1c9b4e5d33ff6bca8f345951b72018171d47e251.tar.gz
made some tests green; implemented 'from module import nil'
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r--compiler/semexprs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim
index 2ffb9cd3a..e07821d1f 100644
--- a/compiler/semexprs.nim
+++ b/compiler/semexprs.nim
@@ -40,7 +40,7 @@ proc semExprWithType(c: PContext, n: PNode, flags: TExprFlags = {}): PNode =
     # do not produce another redundant error message:
     #raiseRecoverableError("")
     result = errorNode(c, n)
-  if result.typ == nil:
+  if result.typ == nil or result.typ == EnforceVoidContext:
     # we cannot check for 'void' in macros ...
     LocalError(n.info, errExprXHasNoType, 
                renderTree(result, {renderNoComments}))
raq <rumpf_a@web.de> 2013-09-10 00:40:06 +0200 cn2im: basic C++ support' href='/ahoang/Nim/commit/doc/apis.txt?h=devel&id=db19b1824197cb8051ab630bbc96ca51821f7f3b'>db19b1824 ^
3e9dcc8be ^
053309e60 ^

581572b28 ^
d89918ab4 ^






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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88