Merge remote-tracking branch 'origin/main' into rebranch

This commit is contained in:
swift-ci
2021-08-19 16:13:41 -07:00
11 changed files with 52 additions and 11 deletions

View File

@@ -3521,7 +3521,9 @@ public:
for (auto element : proto->getInherited()) {
auto elementType = element.getType();
assert(!elementType || !elementType->hasArchetype());
if (elementType && elementType->is<ProtocolType>())
if (elementType &&
(elementType->is<ProtocolType>() ||
elementType->is<ProtocolCompositionType>()))
dependencyTypes.insert(elementType);
}