mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We're now correctly checking for inheritance, adding @objc methods, and adding @objc protocols for both CF types and objc_runtime_visible classes (those without visible symbols). The latter is used for some of the types in Dispatch, which has exposed some of the classes that were considered implementation details on past OSs. We still don't properly implement using 'as?' to check conformance to a Swift protocol for a CF or objc_runtime_visible type, but we can do that later. rdar://problem/26850367
10 lines
242 B
Objective-C
10 lines
242 B
Objective-C
@import Foundation;
|
|
|
|
__attribute__((visibility("hidden")))
|
|
__attribute__((objc_runtime_visible))
|
|
@interface HiddenClass : NSObject
|
|
@property (readonly, nonnull) NSString *name;
|
|
@end
|
|
|
|
HiddenClass * _Nonnull createHidden() NS_RETURNS_RETAINED;
|