Merge remote-tracking branch 'origin/master' into master-next

This commit is contained in:
swift_jenkins
2019-11-20 20:00:17 -08:00
2 changed files with 13 additions and 0 deletions

View File

@@ -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;