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: ed160417da86fa3734008cac95574ea3
duplicates:
Issue Description:
I think it would be reasonable for Swift to be able to prove the exhaustiveness of this switch statement:
$ cat z.swift enum E { case empty case nonEmpty public func intersection(_ rhs: E) -> E { switch (self, rhs) { case (.empty, _): return .empty case (_, .empty): return .empty case (.nonEmpty, .nonEmpty): return .empty } } } $ swift-dev --driver-mode=swiftc -c z.swift z.swift:13:9: error: switch must be exhaustive, consider adding a default clause } ^
The text was updated successfully, but these errors were encountered:
ddunbar
No branches or pull requests
Additional Detail from JIRA
md5: ed160417da86fa3734008cac95574ea3
duplicates:
Issue Description:
I think it would be reasonable for Swift to be able to prove the exhaustiveness of this switch statement:
The text was updated successfully, but these errors were encountered: