From 8178cd4fab0968c1d808b6d3cf56c30c3db7fb37 Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 12 Sep 2012 08:43:24 +0200 Subject: made some tests green --- compiler/semexprs.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') 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: -- cgit 1.4.1-2-gfad0