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 9313aa0 commit 1eb1840Copy full SHA for 1eb1840
lib/AST/GenericSignatureBuilder.cpp
@@ -4143,7 +4143,9 @@ ConstraintResult GenericSignatureBuilder::expandConformanceRequirement(
4143
// ... from the same module as the protocol.
4144
if (type->getModuleContext() != proto->getModuleContext()) continue;
4145
4146
- // Or is constrained.
+ // Ignore types defined in constrained extensions; their equivalence
4147
+ // to the associated type would have to be conditional, which we cannot
4148
+ // model.
4149
if (auto ext = dyn_cast<ExtensionDecl>(type->getDeclContext())) {
4150
if (ext->isConstrainedExtension()) continue;
4151
}
0 commit comments