mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This is necessary for proper working of #keyPath, as well as improving the experience of PrintAsObjC. rdar://problem/28543037
19 lines
497 B
Objective-C
19 lines
497 B
Objective-C
@import Foundation;
|
|
|
|
@interface Base : NSObject
|
|
- (NSUInteger)foo;
|
|
- (NSUInteger)foo:(NSUInteger)ignored;
|
|
- (NSUInteger)foo:(NSUInteger)x y:(NSUInteger)y;
|
|
|
|
@property(readonly,getter=getProp) NSUInteger prop;
|
|
@property(readonly) NSInteger originalName __attribute__((swift_name("renamedProp")));
|
|
|
|
- (id)objectAtIndexedSubscript:(NSUInteger)idx;
|
|
|
|
- (void)callback:(NSUInteger(^)(void))block;
|
|
|
|
- (BOOL)doThingAndReturnError:(NSError **)error;
|
|
- (BOOL)doAnotherThingWithError:(NSError **)error;
|
|
|
|
@end
|