[PrintAsObjC] Test that we don't leak extended implementationOnly types

This commit is contained in:
Alexis Laferrière
2020-03-06 17:12:05 -08:00
committed by Alexis Laferrière
parent fa5924407d
commit e078a86f0b
2 changed files with 7 additions and 0 deletions

View File

@@ -3,3 +3,6 @@
@interface NSObject (Secrets)
- (void)secretMethod;
@end
@interface SecretClass : NSObject
@end

View File

@@ -67,3 +67,7 @@ import MostlyPrivate2_Private
@objc public class TestSubclass: NSObject {
@_implementationOnly public override func secretMethod() {}
}
extension SecretClass {
private func somethingThatShouldNotBeIncluded() {}
}