Files
swift-mirror/test/ModuleInterface/Inputs/objc_implementation/objc_implementation.h
Slava Pestov 0b3fd9eede ASTPrinter: Fix printing of let properties inside @objc @implementation extensions
A `let` here is really just a `var` with a `{ get }`.

Fixes rdar://problem/127120469.
2025-06-05 23:07:04 -04:00

43 lines
666 B
Objective-C

#import <Foundation/Foundation.h>
@interface ImplClass: NSObject
- (nonnull instancetype)init;
@property (readonly) int letProperty1;
@property (assign) int implProperty;
- (void)mainMethod:(int)param;
@end
@interface ImplClass (Category1)
- (void)category1Method:(int)param;
@end
@interface ImplClass (Category2)
- (void)category2Method:(int)param;
@end
@interface NoImplClass
- (void)noImplMethod:(int)param;
@end
@interface NoInitImplClass: NSObject
@property (readonly, strong, nonnull) NSString *s1;
@property (strong, nonnull) NSString *s2;
@property (readonly, strong, nonnull) NSString *s3;
@property (strong, nonnull) NSString *s4;
@end