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 d9a3f2e commit 82bd81eCopy full SHA for 82bd81e
lib/ClangImporter/ImportDecl.cpp
@@ -6598,8 +6598,8 @@ void SwiftDeclConverter::importObjCProtocols(
6598
SmallVectorImpl<InheritedEntry> &inheritedTypes) {
6599
SmallVector<ProtocolDecl *, 4> protocols;
6600
llvm::SmallPtrSet<ProtocolDecl *, 4> knownProtocols;
6601
- if (auto nominal = dyn_cast<NominalTypeDecl>(decl)) {
6602
- nominal->getImplicitProtocols(protocols);
+ if (auto classDecl = dyn_cast<ClassDecl>(decl)) {
+ classDecl->getImplicitProtocols(protocols);
6603
knownProtocols.insert(protocols.begin(), protocols.end());
6604
}
6605
0 commit comments