mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Previously ClangImporter was not able to lookup `NSObject` when C++ interop is enabled, which caused types such as `xpc_object_t` from system module XPC to be imported differently: `any OS_xpc_object` without C++ interop vs `any NSObject & OS_xpc_object` with C++ interop enabled. rdar://110000787
9 lines
191 B
Swift
9 lines
191 B
Swift
// RUN: %target-swift-frontend -typecheck -verify -I %S/Inputs -cxx-interoperability-mode=swift-5.9 %s
|
|
// REQUIRES: objc_interop
|
|
|
|
import OSObject
|
|
|
|
extension my_object_t {
|
|
func dummy() {}
|
|
}
|