diff options
author | Araq <rumpf_a@web.de> | 2014-02-02 00:45:47 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-02-02 00:45:47 +0100 |
commit | efcbaa965e84588c8ff9ed5a62b79820dd5ea5ca (patch) | |
tree | e64c2adccb071a06e6be6a0103a1c6433236bb98 /compiler/semstmts.nim | |
parent | d29aa4c5ac6950a9b8c53bedeb9dd0dd9b4f64a2 (diff) | |
parent | f9c2ec8d9238afaff285b2ba286f8c5534b05eec (diff) | |
download | Nim-efcbaa965e84588c8ff9ed5a62b79820dd5ea5ca.tar.gz |
remove the old tester
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 a26d89836..caa719c7e 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -1247,7 +1247,7 @@ proc semStmtList(c: PContext, n: PNode): PNode = if n.sons[i].typ == enforceVoidContext or usesResult(n.sons[i]): voidContext = true n.typ = enforceVoidContext - if i != last or voidContext: + if i != last or voidContext or c.inTypeClass > 0: discardCheck(c, n.sons[i]) else: n.typ = n.sons[i].typ |