[SR-8125] Swift 4.2 exhaustivity checker regression #50657
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
swift 4.2
Environment
Xcode Version 10.0 beta 2 (10L177m)
Additional Detail from JIRA
md5: 151824427e3aec5ee74b46aec98a0730
is duplicated by:
Issue Description:
The following code compiles in Swift 4.1, but fails with an exhaustivity error in Swift 4.2:
The
Event
enum has afailure
case which in this case has an associated value of typeNoError
, and thus is impossible to construct.Reproduced on this branch in the ReactiveSwift repository: https://github.com/ReactiveCocoa/ReactiveSwift/tree/as-exhaustivity-bug
The text was updated successfully, but these errors were encountered: