mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -4102,6 +4102,10 @@ ConstraintResult GenericSignatureBuilder::expandConformanceRequirement(
|
||||
auto type = dyn_cast<TypeDecl>(found);
|
||||
if (!type || isa<AssociatedTypeDecl>(type)) continue;
|
||||
|
||||
// Ignore nominal types. They're always invalid declarations.
|
||||
if (isa<NominalTypeDecl>(type))
|
||||
continue;
|
||||
|
||||
// ... from the same module as the protocol.
|
||||
if (type->getModuleContext() != proto->getModuleContext()) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user