Skip to content

Commit 504b2eb

Browse files
committed
RequirementMachine: Change an isExistentialType() to isConstraintType()
1 parent 4d8c437 commit 504b2eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/RequirementMachine/RequirementLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ static void desugarConformanceRequirement(Type subjectType, Type constraintType,
340340
}
341341

342342
for (auto memberType : compositionType->getMembers()) {
343-
if (memberType->isExistentialType())
343+
if (memberType->isConstraintType())
344344
desugarConformanceRequirement(subjectType, memberType,
345345
loc, result, errors);
346346
else

0 commit comments

Comments
 (0)