Skip to content

Commit

Permalink
test whether it is unnecessary (#18893)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored Oct 14, 2021
1 parent c4c9876 commit 3493783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/semtypinst.nim
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ proc checkConstructedType*(conf: ConfigRef; info: TLineInfo, typ: PType) =
proc searchInstTypes*(g: ModuleGraph; key: PType): PType =
let genericTyp = key[0]
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):
if inst.id == key.id: return inst
Expand Down

0 comments on commit 3493783

Please sign in to comment.