Skip to content

Commit b08d5b1

Browse files
committed
Disable Obj-C test on non-ObjC platforms.
1 parent efa7d90 commit b08d5b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/Casting/Casts.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,7 @@ CastsTests.test("Casting Objects retained from KeyPaths to Protocols is not work
858858
expectNotNil(value as? SuperProtocol)
859859
}
860860

861+
#if _runtime(_ObjC)
861862
// Known to still be broken, but we can document the issue here
862863
public protocol SomeProtocol {}
863864
extension NSString: SomeProtocol {}
@@ -878,5 +879,6 @@ CastsTests.test("NSDictionary -> Dictionary casting [SR-12025]") {
878879
let d = c as? [String:SomeProtocol]
879880
expectNotNil(d) // Non-nil (as expected)
880881
}
882+
#endif
881883

882884
runAllTests()

0 commit comments

Comments
 (0)