mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Expression patterns (and cast patterns) don't actually contribute to the exhaustivity of a switch statement---if you're matching against a String, matching "abc" doesn't meaningfully reduce the full space of the values you have to match. This was already handled, but didn't do the right thing in a particular case involving a tuple payload in an enum after the Space Engine (exhaustivity checker) optimizations that went out in Swift 5. https://bugs.swift.org/browse/SR-10301
30 KiB
30 KiB