diff --git a/compiler/seminst.nim b/compiler/seminst.nim index a34467636a..7d0585d444 100644 --- a/compiler/seminst.nim +++ b/compiler/seminst.nim @@ -81,7 +81,8 @@ proc sameInstantiation(a, b: TInstantiation): bool = if not compareTypes(a.concreteTypes[i], b.concreteTypes[i], flags = {ExactTypeDescValues, ExactGcSafety, - PickyCAliases}): return + PickyCAliases, + PickyBackendAliases}): return result = true else: result = false diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim index 5f846c80ac..326fbd63f7 100644 --- a/compiler/semtypinst.nim +++ b/compiler/semtypinst.nim @@ -52,7 +52,8 @@ proc searchInstTypes*(g: ModuleGraph; key: PType): PType = for j in FirstGenericParamAt..