test whether it is unnecessary (#18893)
This commit is contained in:
parent
c4c9876785
commit
3493783d0f
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ proc checkConstructedType*(conf: ConfigRef; info: TLineInfo, typ: PType) =
|
||||||
proc searchInstTypes*(g: ModuleGraph; key: PType): PType =
|
proc searchInstTypes*(g: ModuleGraph; key: PType): PType =
|
||||||
let genericTyp = key[0]
|
let genericTyp = key[0]
|
||||||
if not (genericTyp.kind == tyGenericBody and
|
if not (genericTyp.kind == tyGenericBody and
|
||||||
key[0] == genericTyp and genericTyp.sym != nil): return
|
genericTyp.sym != nil): return
|
||||||
|
|
||||||
for inst in typeInstCacheItems(g, genericTyp.sym):
|
for inst in typeInstCacheItems(g, genericTyp.sym):
|
||||||
if inst.id == key.id: return inst
|
if inst.id == key.id: return inst
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue