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 807e415 commit eba2329Copy full SHA for eba2329
Tests/Foundation/Tests/TestBridging.swift
@@ -26,6 +26,7 @@ class TestBridging : XCTestCase {
26
static var allTests: [(String, (TestBridging) -> () throws -> Void)] {
27
return [
28
("testBridgedDescription", testBridgedDescription),
29
+ ("testDynamicCast", testDynamicCast),
30
]
31
}
32
@@ -62,4 +63,10 @@ class TestBridging : XCTestCase {
62
63
XCTAssertEqual("description", c.debugDescription)
64
#endif
65
66
+
67
+ func testDynamicCast() throws {
68
+ class TestClass {}
69
+ let anyArray: Any = [TestClass()]
70
+ XCTAssertNil(anyArray as? NSObject)
71
+ }
72
0 commit comments