Files
swift-mirror/test/Inputs/ObjCOptionalRequirements.h
Anthony Latsis 934964d49d Use AbstractStorageDecl::isSettableInSwift to prohibit direct writes to optional requirements
Stop pretending that an optional requirement is immutable via the `StorageImplInfo` request.
This approach has lead astray the conformance checker and may have had a negative impact
on other code paths, and it doesn't work for imported declarations because they bypass the
request. Instead, use a forwarding `AbstractStorageDecl::isSettableInSwift` method
that special-cases optional requirements.
2022-04-20 14:27:15 +03:00

7 lines
100 B
Objective-C

@import Foundation;
@protocol ObjCProtocol
@optional
@property (nonatomic, assign) BOOL flag;
@end