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 52239f5 commit 8702101Copy full SHA for 8702101
lib/Frontend/ModuleInterfaceSupport.cpp
@@ -669,11 +669,9 @@ class InheritedProtocolCollector {
669
670
// First record all protocols that have already been handled.
671
for (ProtocolDecl *proto : IncludedProtocols) {
672
- proto->walkInheritedProtocols(
673
- [&handledProtocols](ProtocolDecl *inherited) -> TypeWalker::Action {
674
- handledProtocols.insert(inherited);
675
- return TypeWalker::Action::Continue;
676
- });
+ handledProtocols.insert(proto);
+ auto allInherited = proto->getAllInheritedProtocols();
+ handledProtocols.insert(allInherited.begin(), allInherited.end());
677
}
678
679
// Preserve the behavior of previous implementations which formatted of
0 commit comments