summary refs log tree commit diff stats
path: root/compiler/semfold.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/semfold.nim
parentd29aa4c5ac6950a9b8c53bedeb9dd0dd9b4f64a2 (diff)
parentf9c2ec8d9238afaff285b2ba286f8c5534b05eec (diff)
downloadNim-efcbaa965e84588c8ff9ed5a62b79820dd5ea5ca.tar.gz
remove the old tester
Diffstat (limited to 'compiler/semfold.nim')
-rw-r--r--compiler/semfold.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/semfold.nim b/compiler/semfold.nim
index 78e5cdd5e..4740ddcb3 100644
--- a/compiler/semfold.nim
+++ b/compiler/semfold.nim
@@ -252,8 +252,7 @@ proc evalIs(n, a: PNode): PNode =
   else:
     # XXX semexprs.isOpImpl is slightly different and requires a context. yay.
     let t2 = n[2].typ
-    var match = if t2.kind == tyTypeClass: true
-                else: sameType(t1, t2)
+    var match = sameType(t1, t2)
     result = newIntNode(nkIntLit, ord(match))
   result.typ = n.typ