diff options
author | flywind <xzsflywind@gmail.com> | 2021-10-14 15:23:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-14 09:23:36 +0200 |
commit | 3493783d0f3f90b2a90c87b93c92360168272f34 (patch) | |
tree | e194b1ef98e85ec453ce4f78c936fd9e9d3b4b61 | |
parent | c4c9876785a17f9b43bb1e0748eff67a71a7487f (diff) | |
download | Nim-3493783d0f3f90b2a90c87b93c92360168272f34.tar.gz |
test whether it is unnecessary (#18893)
-rw-r--r-- | compiler/semtypinst.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim index 0bb53e04d..5d300fc58 100644 --- a/compiler/semtypinst.nim +++ b/compiler/semtypinst.nim @@ -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 |