mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Only test NSObject interop on Obj-C platforms
This commit is contained in:
@@ -1064,11 +1064,13 @@ CastsTests.test("Don't put AnyHashable inside AnyObject") {
|
||||
expectTrue(a === d)
|
||||
}
|
||||
|
||||
#if _runtime(_ObjC)
|
||||
CastsTests.test("__SwiftValue should not be obvious to `is`") {
|
||||
struct S {}
|
||||
let s = S() as AnyObject
|
||||
expectFalse(s is NSObject)
|
||||
}
|
||||
#endif
|
||||
|
||||
CastsTests.test("type(of:) should look through __SwiftValue")
|
||||
.xfail(.always("Known to be broken"))
|
||||
|
||||
Reference in New Issue
Block a user