mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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
15 lines
514 B
Swift
15 lines
514 B
Swift
// REQUIRES: VENDOR=apple
|
|
// RUN: %empty-directory(%t)
|
|
|
|
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-ir -o/dev/null -parse-as-library -module-name test -validate-tbd-against-ir=missing %s -I %S/Inputs/ -disable-objc-attr-requires-foundation-module -emit-tbd -emit-tbd-path %t/test.tbd
|
|
|
|
import Foundation
|
|
@_exported import CustomError
|
|
|
|
extension CustomError : CustomStringConvertible {
|
|
public var description: String {
|
|
let nsError = self as NSError
|
|
return nsError.description
|
|
}
|
|
}
|