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 e8aee18 commit 143a1b8Copy full SHA for 143a1b8
lib/AST/GenericSignature.cpp
@@ -1259,8 +1259,9 @@ void GenericSignatureImpl::getRequirementsWithInverses(
1259
1260
// Record the absence of conformances to invertible protocols.
1261
for (auto gp : getGenericParams()) {
1262
- // Any generic parameter with a superclass bound could not have an inverse.
1263
- if (getSuperclassBound(gp))
+ // Any generic parameter with a superclass bound or concrete type does not
+ // have an inverse.
1264
+ if (getSuperclassBound(gp) || getConcreteType(gp))
1265
continue;
1266
1267
for (auto ip : InvertibleProtocolSet::full()) {
0 commit comments