diff options
author | Araq <rumpf_a@web.de> | 2015-07-22 16:32:56 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-07-22 16:32:56 +0200 |
commit | b0b716fca73293328d4290d6407f9f3cbcdfe164 (patch) | |
tree | 06d8f84489960e8be1b66558a10c1c4c68b98093 /compiler/semexprs.nim | |
parent | 862ee8d1d3f76dbbae0866f9048292a74fc07b71 (diff) | |
download | Nim-b0b716fca73293328d4290d6407f9f3cbcdfe164.tar.gz |
fixes #3079, fixes #1146, fixes #2879
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r-- | compiler/semexprs.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 886f9458d..fba64776d 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -33,6 +33,7 @@ proc semOperand(c: PContext, n: PNode, flags: TExprFlags = {}): PNode = if result.typ.kind == tyVar: result = newDeref(result) elif {efWantStmt, efAllowStmt} * flags != {}: result.typ = newTypeS(tyEmpty, c) + result.typ.flags.incl tfVoid else: localError(n.info, errExprXHasNoType, renderTree(result, {renderNoComments})) |