rdar://127199021, fix compatibility with apps that accidentally do [[[aSwiftArray class] new] mutableCopy] to work (#73728)

This commit is contained in:
David Smith
2024-05-20 12:06:05 -07:00
committed by GitHub
parent 7ce4df7816
commit b81aec5c1a
4 changed files with 35 additions and 0 deletions

View File

@@ -422,6 +422,11 @@ tests.test("testThunks") {
testBridgeableValue(Thunks())
}
tests.test("testHKTFilter") {
let base = ["hello", "world"]
let result = testHKTFilter(base) as! NSArray as! [String]
expectEqual(result, ["hello"])
}
tests.test("testRoundTrip") {
class Test : NSObject {