summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-09-12 08:43:24 +0200
committerAraq <rumpf_a@web.de>2012-09-12 08:43:24 +0200
commit8178cd4fab0968c1d808b6d3cf56c30c3db7fb37 (patch)
tree7aa02ab757bd29bb69eb1a3eb0cb91b08615608a /compiler
parentd48d3d0bd19772160f7f7eea292c74b71bd38b16 (diff)
downloadNim-8178cd4fab0968c1d808b6d3cf56c30c3db7fb37.tar.gz
made some tests green
Diffstat (limited to 'compiler')
-rwxr-xr-xcompiler/semexprs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim
index 027cd0946..521de8c23 100755
--- a/compiler/semexprs.nim
+++ b/compiler/semexprs.nim
@@ -707,7 +707,7 @@ proc semExprNoType(c: PContext, n: PNode): PNode =
     result = isCallExpr(n) and n.sons[0].kind == nkSym and 
              sfDiscardable in n.sons[0].sym.flags
   result = semExpr(c, n)
-  if result.typ != nil and result.typ.kind != tyStmt:
+  if result.typ != nil and result.typ.kind notin {tyStmt, tyEmpty}:
     if gCmd == cmdInteractive:
       result = buildEchoStmt(c, result)
     elif not ImplicitelyDiscardable(result) and result.typ.kind != tyError: