File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
Inputs/custom-modules/objc_implementation Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -2845,7 +2845,7 @@ static bool excludeForObjCImplementation(const ValueDecl *VD) {
28452845 return true ;
28462846 // Exclude overrides in an @_objcImplementation extension; the decl they're
28472847 // overriding is declared elsewhere.
2848- if (VD->isImplicit () && VD-> getOverriddenDecl ()) {
2848+ if (VD->getOverriddenDecl ()) {
28492849 auto ED = dyn_cast<ExtensionDecl>(VD->getDeclContext ());
28502850 if (ED && ED->isObjCImplementation ())
28512851 return true ;
Original file line number Diff line number Diff line change 66
77@end
88
9+ @interface ObjCClass2 : NSObject
10+
11+ @end
12+
913void CImplFunc (void );
Original file line number Diff line number Diff line change @@ -30,11 +30,18 @@ extension ObjCClass {
3030 // Implicit `override init()` to override superclass
3131
3232 // NEGATIVE-NOT: )swiftMethod{{ }}
33- @objc func swiftMethod( ) -> Any ? { nil }
33+ @objc public func swiftMethod( ) -> Any ? { nil }
3434
3535 // NEGATIVE-NOT: )privateMethod{{ }}
3636 @objc private func privateMethod( ) -> Any ? { nil }
3737}
3838
39+ // Has no contents that need to be printed
40+ // NEGATIVE-NOT: ObjCClass2
41+ @_objcImplementation extension ObjCClass2 {
42+ // NEGATIVE-NOT: )init{{ }}
43+ public override init ( ) { }
44+ }
45+
3946@_cdecl ( " CImplFunc " ) @_objcImplementation func CImplFunc( ) { }
4047// NEGATIVE-NOT: CImplFunc(
You can’t perform that action at this time.
0 commit comments