fixes #3079, fixes #1146, fixes #2879

This commit is contained in:
Araq 2015-07-22 16:32:56 +02:00
commit b0b716fca7
6 changed files with 33 additions and 3 deletions

View file

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