wip fix #5640
This commit is contained in:
parent
cdfcc12529
commit
ee4b98ec17
2 changed files with 3 additions and 1 deletions
|
|
@ -70,6 +70,8 @@ proc debug*(n: PNode) {.deprecated.}
|
||||||
template mdbg*: bool {.dirty.} =
|
template mdbg*: bool {.dirty.} =
|
||||||
when compiles(c.module):
|
when compiles(c.module):
|
||||||
c.module.fileIdx == gProjectMainIdx
|
c.module.fileIdx == gProjectMainIdx
|
||||||
|
elif compiles(c.c.module):
|
||||||
|
c.c.module.fileIdx == gProjectMainIdx
|
||||||
elif compiles(m.c.module):
|
elif compiles(m.c.module):
|
||||||
m.c.module.fileIdx == gProjectMainIdx
|
m.c.module.fileIdx == gProjectMainIdx
|
||||||
elif compiles(cl.c.module):
|
elif compiles(cl.c.module):
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
import ast, astalgo, msgs, types, magicsys, semdata, renderer
|
import ast, astalgo, msgs, types, magicsys, semdata, renderer
|
||||||
|
|
||||||
const
|
const
|
||||||
tfInstClearedFlags = {tfHasMeta}
|
tfInstClearedFlags = {tfHasMeta, tfUnresolved}
|
||||||
|
|
||||||
proc checkPartialConstructedType(info: TLineInfo, t: PType) =
|
proc checkPartialConstructedType(info: TLineInfo, t: PType) =
|
||||||
if tfAcyclic in t.flags and skipTypes(t, abstractInst).kind != tyObject:
|
if tfAcyclic in t.flags and skipTypes(t, abstractInst).kind != tyObject:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue