mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Optional conditionally conforms to Hashable, so for example `Optional<Int>` must cast to AnyHashable _even if it contains `nil`_. This was broken up through Swift 5.3 and was fixed by the new dynamic cast runtime. Add a test to ensure this stays fixed.