Files
swift-mirror/test/Sema/Inputs/implementation-only-override/FooKit_SECRET.h
Jordan Rose 44227fef96 Add test cases for when a property/subscript is redeclared readwrite
And improve the comment around the FIXME for this, which is tricky to
implement.
2019-06-17 17:48:40 -07:00

36 lines
1.0 KiB
Objective-C

#import <FooKit.h>
@interface SECRETType : Base
@end
@interface Parent ()
- (nonnull instancetype)initWithSECRET:(int)secret __attribute__((objc_designated_initializer, swift_name("init(SECRET:)")));
- (void)methodSECRET;
- (nullable SECRETType *)methodWithSECRETType;
@property (readonly, strong, nullable) Parent *roPropSECRET;
@property (readwrite, strong, nullable) Parent *rwPropSECRET;
- (nullable Parent *)objectAtIndexedSubscript:(int)index;
@property (readwrite, strong, nullable) Parent *redefinedPropSECRET;
@end
@protocol MandatorySecrets
- (nonnull instancetype)initWithRequiredSECRET:(int)secret;
@end
@interface Parent () <MandatorySecrets>
- (nonnull instancetype)initWithRequiredSECRET:(int)secret __attribute__((objc_designated_initializer));
@end
@interface GenericParent<T: Base *> ()
@property (readonly, strong, nullable) T roPropSECRET;
- (nullable Parent *)objectAtIndexedSubscript:(int)index;
@end
@interface SubscriptParent ()
- (void)setObject:(nullable Parent *)object atIndexedSubscript:(int)index;
@end