File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -6716,7 +6716,7 @@ void SwiftDeclConverter::importInheritedConstructors(
6716
6716
6717
6717
auto curObjCClass = cast<clang::ObjCInterfaceDecl>(classDecl->getClangDecl ());
6718
6718
6719
- auto inheritConstructors = [&](DeclRange members,
6719
+ auto inheritConstructors = [&](ArrayRef<ValueDecl *> members,
6720
6720
Optional<CtorInitializerKind> kind) {
6721
6721
const auto &languageVersion =
6722
6722
Impl.SwiftContext .LangOpts .EffectiveLanguageVersion ;
@@ -6816,10 +6816,8 @@ void SwiftDeclConverter::importInheritedConstructors(
6816
6816
// If we have a superclass, import from it.
6817
6817
if (auto superclassClangDecl = superclass->getClangDecl ()) {
6818
6818
if (isa<clang::ObjCInterfaceDecl>(superclassClangDecl)) {
6819
- inheritConstructors (superclass->getMembers (), kind);
6820
-
6821
- for (auto ext : superclass->getExtensions ())
6822
- inheritConstructors (ext->getMembers (), kind);
6819
+ inheritConstructors (superclass->lookupDirect (Impl.SwiftContext .Id_init ),
6820
+ kind);
6823
6821
}
6824
6822
}
6825
6823
}
You can’t perform that action at this time.
0 commit comments