mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We could support this in the future but right now it's causing problems. There's also a potential ambiguity issue here where a protocol and class could have the same name. In addition to updating the importer, remove the two entries from the CryptoTokenKit API notes that were trying to use this feature. rdar://problem/27990168
20 lines
489 B
Objective-C
20 lines
489 B
Objective-C
#ifndef IMPORT_AS_MEMBER_ERR_H
|
|
#define IMPORT_AS_MEMBER_ERR_H
|
|
|
|
struct __attribute__((swift_name("ErrorStruct"))) IAMStruct {
|
|
double x, y, z;
|
|
};
|
|
|
|
@import Foundation;
|
|
|
|
@protocol ImportedProtocolBase;
|
|
@protocol ImportedProtocolBase <NSObject>
|
|
@end
|
|
typedef NSObject<ImportedProtocolBase> *ImportedProtocolBase_t;
|
|
|
|
// Non-prototype declaration
|
|
extern void IAMErrorStructHasPrototype(void)
|
|
__attribute__((swift_name("ErrorStruct.hasPrototype()"))); // ok
|
|
|
|
#endif // IMPORT_AS_MEMBER_ERR_H
|