This commit is contained in:
Araq 2013-08-30 22:47:14 +02:00
commit 4d9b2f671a
4 changed files with 25 additions and 13 deletions

View file

@ -1205,7 +1205,7 @@ proc semStmtList(c: PContext, n: PNode): PNode =
if n.sons[i].typ == EnforceVoidContext or usesResult(n.sons[i]):
voidContext = true
n.typ = EnforceVoidContext
elif i != last or voidContext:
if i != last or voidContext:
discardCheck(n.sons[i])
else:
n.typ = n.sons[i].typ