Files
swift-mirror/test/SILGen/Inputs/objc_implementation.h
Becca Royal-Gordon 9cffd4528d Fix objcImpl SILGen crash with initial value
The initial value expressions of stored properties in objcImpl classes were being incorrectly marked as serializable. As a result, the compiler would crash with a SIL verification failure if one of them called a non-public function or initializer.

Fix this problem by not marking these initial value expression functions as serializable. Code in other modules should not call them anyway, since they think of the class as a pure ObjC class.

Fixes rdar://114874429.
2024-07-23 16:17:30 -07:00

21 lines
305 B
Objective-C

#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface ImplClass : NSObject
- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithInt:(NSInteger)x;
@end
@interface Rdar114874429 : NSObject
- (instancetype)init;
@property (readonly) NSInteger prop;
@end
NS_ASSUME_NONNULL_END