mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[PrintAsObjC] Test that we don't leak extended implementationOnly types
This commit is contained in:
committed by
Alexis Laferrière
parent
fa5924407d
commit
e078a86f0b
@@ -3,3 +3,6 @@
|
||||
@interface NSObject (Secrets)
|
||||
- (void)secretMethod;
|
||||
@end
|
||||
|
||||
@interface SecretClass : NSObject
|
||||
@end
|
||||
|
||||
@@ -67,3 +67,7 @@ import MostlyPrivate2_Private
|
||||
@objc public class TestSubclass: NSObject {
|
||||
@_implementationOnly public override func secretMethod() {}
|
||||
}
|
||||
|
||||
extension SecretClass {
|
||||
private func somethingThatShouldNotBeIncluded() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user