summary refs log tree commit diff stats
path: root/compiler/semfold.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-10-03 20:51:22 +0200
committerAraq <rumpf_a@web.de>2012-10-03 20:51:22 +0200
commitc2b8669e04560e486e5df21b1217e6b9684ba88e (patch)
treecdff4a9c1ba92e7feb1990989caff5415fe83dd5 /compiler/semfold.nim
parent9fbee85cc9dd95c1f99e5b55a3d382196eabb7fc (diff)
parent34e62d9f734189a9237725569aa282e9bedc11a3 (diff)
downloadNim-c2b8669e04560e486e5df21b1217e6b9684ba88e.tar.gz
Merge branch 'master' of github.com:Araq/Nimrod
Diffstat (limited to 'compiler/semfold.nim')
-rwxr-xr-xcompiler/semfold.nim11
1 files changed, 0 insertions, 11 deletions
diff --git a/compiler/semfold.nim b/compiler/semfold.nim
index c2958ca5e..d0805d921 100755
--- a/compiler/semfold.nim
+++ b/compiler/semfold.nim
@@ -610,17 +610,6 @@ proc getConstExpr(m: PSym, n: PNode): PNode =
           result = newIntNodeT(sonsLen(a), n)
         else:
           result = magicCall(m, n)
-      of mIs:
-        # BUGFIX: don't evaluate this too early: ``T is void``
-        if not containsGenericType(n[1].typ):
-          if n[2].kind in {nkStrLit..nkTripleStrLit}:
-            case n[2].strVal.normalize
-            of "closure":
-              let t = skipTypes(n[1].typ, abstractRange)
-              result = newIntNodeT(ord(t.kind == tyProc and
-                                       t.callConv == ccClosure), n)
-          elif not containsGenericType(n[2].typ):
-            result = newIntNodeT(ord(sameType(n[1].typ, n[2].typ)), n)
       of mAstToStr:
         result = newStrNodeT(renderTree(n[1], {renderNoComments}), n)
       of mConStrStr: