File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -400,6 +400,9 @@ class ModuleWriter {
400400 }
401401
402402 bool writeExtension (const ExtensionDecl *ED) {
403+ if (printer.isEmptyExtensionDecl (ED))
404+ return true ;
405+
403406 bool allRequirementsSatisfied = true ;
404407
405408 const ClassDecl *CD = ED->getSelfClassDecl ();
Original file line number Diff line number Diff line change 33@interface NSObject (Secrets)
44- (void )secretMethod ;
55@end
6+
7+ @interface SecretClass : NSObject
8+ @end
Original file line number Diff line number Diff line change @@ -67,3 +67,7 @@ import MostlyPrivate2_Private
6767@objc public class TestSubclass : NSObject {
6868 @_implementationOnly public override func secretMethod( ) { }
6969}
70+
71+ extension SecretClass {
72+ private func somethingThatShouldNotBeIncluded( ) { }
73+ }
You can’t perform that action at this time.
0 commit comments