From 1c9b4e5d33ff6bca8f345951b72018171d47e251 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 19 May 2013 23:17:16 +0200 Subject: made some tests green; implemented 'from module import nil' --- compiler/semexprs.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/semexprs.nim') 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})) -- cgit 1.4.1-2-gfad0