Skip to content

Commit 4e8867e

Browse files
committed
[PrintAsObjC] Test that we don't leak extended implementationOnly types
1 parent 8f01b2c commit 4e8867e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

test/PrintAsObjC/Inputs/custom-modules/MiserablePileOfSecrets.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
@interface NSObject (Secrets)
44
- (void)secretMethod;
55
@end
6+
7+
@interface SecretClass : NSObject
8+
@end

test/PrintAsObjC/imports.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,7 @@ import MostlyPrivate2_Private
7777
@objc public class TestSubclass: NSObject {
7878
@_implementationOnly public override func secretMethod() {}
7979
}
80+
81+
extension SecretClass {
82+
private func somethingThatShouldNotBeIncluded() {}
83+
}

0 commit comments

Comments
 (0)