diff options
author | Andrey Sobolev <andrey.sobolev@xored.com> | 2015-09-14 11:50:39 +0600 |
---|---|---|
committer | Andrey Sobolev <andrey.sobolev@xored.com> | 2015-09-14 11:50:39 +0600 |
commit | 2f6dc8c47f836b66c1a28fd0b90a9e591b6c9be5 (patch) | |
tree | 0676259b78fba9788d6dffd441de1d7f5b0df140 /compiler/semstmts.nim | |
parent | a1aa7da37612eac6f961f0daaf5454f936b4e295 (diff) | |
parent | 148bbee05f31802666dbf1730e0df328ff57a384 (diff) | |
download | Nim-2f6dc8c47f836b66c1a28fd0b90a9e591b6c9be5.tar.gz |
Merge remote-tracking branch 'nim-lang/devel' into emscripten-support
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r-- | compiler/semstmts.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index ffda6a1bb..4399c0ab0 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -1425,7 +1425,7 @@ proc semStmtList(c: PContext, n: PNode, flags: TExprFlags): PNode = localError(result.info, "type class predicate failed") of tyUnknown: continue else: discard - if n.sons[i].typ == enforceVoidContext or usesResult(n.sons[i]): + if n.sons[i].typ == enforceVoidContext: #or usesResult(n.sons[i]): voidContext = true n.typ = enforceVoidContext if i == last and (length == 1 or efWantValue in flags): |