mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add a test for an extremely confusing behavior of switches for ExpressibleByNilLiteral-conforming types. From the looks of the expression tree, one would hope that `case nil` would match such types. Instead, the subject value is up-converted to an optional and compared to `nil` directly with ~=.
653 B
653 B