summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-02-02 00:45:47 +0100
committerAraq <rumpf_a@web.de>2014-02-02 00:45:47 +0100
commitefcbaa965e84588c8ff9ed5a62b79820dd5ea5ca (patch)
treee64c2adccb071a06e6be6a0103a1c6433236bb98 /compiler/semstmts.nim
parentd29aa4c5ac6950a9b8c53bedeb9dd0dd9b4f64a2 (diff)
parentf9c2ec8d9238afaff285b2ba286f8c5534b05eec (diff)
downloadNim-efcbaa965e84588c8ff9ed5a62b79820dd5ea5ca.tar.gz
remove the old tester
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim2
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