We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59f9298 commit 4549089Copy full SHA for 4549089
lib/IRGen/GenProto.cpp
@@ -1006,6 +1006,8 @@ static bool hasDependentTypeWitness(
1006
if (!DC->isGenericContext())
1007
return false;
1008
1009
+ auto genericSig = conformance->getGenericSignature();
1010
+
1011
// Check whether any of the associated types are dependent.
1012
if (conformance->forEachTypeWitness(
1013
[&](AssociatedTypeDecl *requirement, Type type,
@@ -1015,7 +1017,7 @@ static bool hasDependentTypeWitness(
1015
1017
1016
1018
1019
// RESILIENCE: this could be an opaque conformance
- return type->getCanonicalType()->hasTypeParameter();
1020
+ return type->getReducedType(genericSig)->hasTypeParameter();
1021
},
1022
/*useResolver=*/true)) {
1023
return true;
0 commit comments