We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
md5: 71f266f40374f7cab9067ecfa09da645
duplicates:
Issue Description:
func f(x: Int?, y: Int?) { switch (x, y) { case (let x?, _): _ = x // use x case (_, let y?): _ = y // use y case (nil, nil): // switch must be exhaustive, consider adding a default clause break } }
The above errors but the following correctly catches that the 3d case won't ever execute:
func f(x: Int?, y: Int?) { switch (x, y) { case (let x?, _): _ = x case (_, let y?): _ = y case (let x?, let y?): // case will never be executed _ = x _ = y case (nil, nil): break } }
The text was updated successfully, but these errors were encountered:
Still repros in master. CodaFi (JIRA User), does your Space Engine not understand nil as .none on optionals?
nil
.none
Sorry, something went wrong.
@swift-ci create
It does understand that, and I can't get it to reproduce.
Ah, sorry, you're right. I had copied and pasted the unformatted example, and the other cases where commented out since it was all on one line.
No branches or pull requests
Additional Detail from JIRA
md5: 71f266f40374f7cab9067ecfa09da645
duplicates:
Issue Description:
The above errors but the following correctly catches that the 3d case won't ever execute:
The text was updated successfully, but these errors were encountered: