mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
7 lines
100 B
Objective-C
7 lines
100 B
Objective-C
@import Foundation;
|
|
|
|
@protocol ObjCProtocol
|
|
@optional
|
|
@property (nonatomic, assign) BOOL flag;
|
|
@end
|