mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fixes a regression introduced with https://github.com/apple/swift/pull/68216. Some nominal types belonging to clang modules don't have a clang node in the AST, so make sure we match the logic used when computing IR linkage to determine whether a nominal type is a clang type. Resolves rdar://115308770
10 lines
287 B
C
10 lines
287 B
C
@import Foundation;
|
|
|
|
extern NSString *const CustomErrorDomain;
|
|
|
|
// typedef NS_ERROR_ENUM(CustomErrorDomain, CustomErrorCode) { ... }
|
|
typedef enum CustomErrorCode : long CustomErrorCode;
|
|
enum __attribute__((ns_error_domain(CustomErrorDomain))) CustomErrorCode : long {
|
|
CustomErrorA,
|
|
};
|