Skip to content

Commit 1eb1840

Browse files
committed
[GSB] Improve a non-descriptive comment.
1 parent 9313aa0 commit 1eb1840

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/AST/GenericSignatureBuilder.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4143,7 +4143,9 @@ ConstraintResult GenericSignatureBuilder::expandConformanceRequirement(
41434143
// ... from the same module as the protocol.
41444144
if (type->getModuleContext() != proto->getModuleContext()) continue;
41454145

4146-
// Or is constrained.
4146+
// Ignore types defined in constrained extensions; their equivalence
4147+
// to the associated type would have to be conditional, which we cannot
4148+
// model.
41474149
if (auto ext = dyn_cast<ExtensionDecl>(type->getDeclContext())) {
41484150
if (ext->isConstrainedExtension()) continue;
41494151
}

0 commit comments

Comments
 (0)