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 5aaabfd commit 067beb1Copy full SHA for 067beb1
test/Casting/Casts.swift
@@ -901,7 +901,7 @@ CastsTests.test("Optional cast to AnyHashable") {
901
expectNil(d6)
902
903
// In both Swift 5.3 and 5.4, the nil key should be preserved and still function
904
- let d7 = d2[nil]
+ let d7 = d2[String?.none as AnyHashable]
905
expectNotNil(d7)
906
907
// Direct casts via the runtime unwrap the optional in 5.3 but not 5.4.
0 commit comments