mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/main' into rebranch
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user