Skip to content

Commit 143a1b8

Browse files
committed
Fix getRequirementsWithInverses()
1 parent e8aee18 commit 143a1b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/AST/GenericSignature.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,8 +1259,9 @@ void GenericSignatureImpl::getRequirementsWithInverses(
12591259

12601260
// Record the absence of conformances to invertible protocols.
12611261
for (auto gp : getGenericParams()) {
1262-
// Any generic parameter with a superclass bound could not have an inverse.
1263-
if (getSuperclassBound(gp))
1262+
// Any generic parameter with a superclass bound or concrete type does not
1263+
// have an inverse.
1264+
if (getSuperclassBound(gp) || getConcreteType(gp))
12641265
continue;
12651266

12661267
for (auto ip : InvertibleProtocolSet::full()) {

0 commit comments

Comments
 (0)