mirror of
https://github.com/apple/swift.git
synced 2025-12-25 12:15:36 +01:00
It's possible for swift_name to make a global declaration into a member of another entity that has not been seen yet. In such cases, delay resolution until the end of the translation unit (module). Fixes the rest of rdar://problem/25502497.
23 lines
641 B
Objective-C
23 lines
641 B
Objective-C
#ifndef IMPORT_AS_MEMBER_CLASS_H
|
|
#define IMPORT_AS_MEMBER_CLASS_H
|
|
|
|
@import Foundation;
|
|
|
|
typedef NS_OPTIONS(NSInteger, IAMSomeClassOptions) {
|
|
IAMSomeClassFuzzyDice = 0x01,
|
|
IAMSomeClassSpoiler = 0x02
|
|
} __attribute__((swift_name("SomeClass.Options")));
|
|
|
|
__attribute__((swift_name("SomeClass")))
|
|
@interface IAMSomeClass : NSObject
|
|
@end
|
|
|
|
__attribute__((swift_name("SomeClass.init(value:)")))
|
|
IAMSomeClass * _Nonnull MakeIAMSomeClass(double x);
|
|
|
|
__attribute__((swift_name("SomeClass.applyOptions(self:_:)")))
|
|
void IAMSomeClassApplyOptions(IAMSomeClass * _Nonnull someClass,
|
|
IAMSomeClassOptions options);
|
|
|
|
#endif
|