From ee4b98ec17ba7221f864a40ba5d25f63821987cb Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Fri, 7 Apr 2017 15:05:14 +0300 Subject: [PATCH] wip fix #5640 --- compiler/astalgo.nim | 2 ++ compiler/semtypinst.nim | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim index 77108eb7ba..f8435f3592 100644 --- a/compiler/astalgo.nim +++ b/compiler/astalgo.nim @@ -70,6 +70,8 @@ proc debug*(n: PNode) {.deprecated.} template mdbg*: bool {.dirty.} = when compiles(c.module): c.module.fileIdx == gProjectMainIdx + elif compiles(c.c.module): + c.c.module.fileIdx == gProjectMainIdx elif compiles(m.c.module): m.c.module.fileIdx == gProjectMainIdx elif compiles(cl.c.module): diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim index 9ff0b7e78d..27b154d625 100644 --- a/compiler/semtypinst.nim +++ b/compiler/semtypinst.nim @@ -12,7 +12,7 @@ import ast, astalgo, msgs, types, magicsys, semdata, renderer const - tfInstClearedFlags = {tfHasMeta} + tfInstClearedFlags = {tfHasMeta, tfUnresolved} proc checkPartialConstructedType(info: TLineInfo, t: PType) = if tfAcyclic in t.flags and skipTypes(t, abstractInst).kind != tyObject: