summary refs log tree commit diff stats
path: root/compiler/semtypinst.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-02-25 21:36:43 +0100
committerAraq <rumpf_a@web.de>2015-02-25 21:36:43 +0100
commitfce2ff161ea55bb73c076ab20d90730399a4059e (patch)
tree213708fe7802245c01193d080873d41e358a5f2c /compiler/semtypinst.nim
parent975f33b01d65b68ac1fea5de23998864ca2b2b8f (diff)
downloadNim-fce2ff161ea55bb73c076ab20d90730399a4059e.tar.gz
tsigtypeop.nim works again
Diffstat (limited to 'compiler/semtypinst.nim')
-rw-r--r--compiler/semtypinst.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim
index 12fce1b84..452942ec0 100644
--- a/compiler/semtypinst.nim
+++ b/compiler/semtypinst.nim
@@ -369,6 +369,7 @@ proc replaceTypeVarsTAux(cl: var TReplTypeVars, t: PType): PType =
 
   of tyFromExpr:
     if cl.allowMetaTypes: return
+    assert t.n.typ != t
     var n = prepareNode(cl, t.n)
     n = cl.c.semConstExpr(cl.c, n)
     if n.typ.kind == tyTypeDesc: