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 abb1349 commit 4c70434Copy full SHA for 4c70434
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,11 @@ class TestBridging : XCTestCase {
62
63
XCTAssertEqual("description", c.debugDescription)
64
#endif
65
66
+
67
+ func testDynamicCast() throws {
68
+ // Covers https://github.com/apple/swift-corelibs-foundation/pull/2500
69
+ class TestClass {}
70
+ let anyArray: Any = [TestClass()]
71
+ XCTAssertNotNil(anyArray as? NSObject)
72
+ }
73
0 commit comments