Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xcode Version 10.0 beta 2 (10L177m)
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:
extension Signal where Value: ResultProtocol, Error == NoError { func dematerializeResults() -> Signal<Value.Value, Value.Error> { return .init { observer, lifetime in lifetime += self.observe { event in switch event { case let .value(value): value.result.analysis( ifSuccess: { value in observer.send(value: value) }, ifFailure: { error in observer.send(error: error) } ) case .completed: observer.sendCompleted() case .interrupted: observer.sendInterrupted() } } } } }
The Event enum has a failure case which in this case has an associated value of type NoError, and thus is impossible to construct.
Event
failure
NoError
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:
I wonder if this is fallout from unknown case.
unknown case
@swift-ci create
Sorry, something went wrong.
#17680
4.2: #17690
@sharplet, Could you verify if the problem is fixed and if so move the JIRA to "Closed"? Thanks! Anna
This compiled for me on the latest Xcode beta, thanks!
belkadan
No branches or pull requests
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: