Files
swift-mirror/test/stmt/switch_nil.swift
Robert Widmann b6c3ad3ddc Augment Test for Confusing ExpressibleByNilLiteral Case
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 ~=.
2022-03-22 15:36:00 -07:00

653 B