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}))