We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c078479 commit 7af257aCopy full SHA for 7af257a
test/Casting/Casts.swift
@@ -1064,11 +1064,13 @@ CastsTests.test("Don't put AnyHashable inside AnyObject") {
1064
expectTrue(a === d)
1065
}
1066
1067
+#if _runtime(_ObjC)
1068
CastsTests.test("__SwiftValue should not be obvious to `is`") {
1069
struct S {}
1070
let s = S() as AnyObject
1071
expectFalse(s is NSObject)
1072
1073
+#endif
1074
1075
CastsTests.test("type(of:) should look through __SwiftValue")
1076
.xfail(.always("Known to be broken"))
0 commit comments