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
Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7)
md5: fe53c9c5e3f114a14ba0cbf8d0edd311
relates to:
Issue Description:
enum Foo { case bar(Int) case bar(Int, Int) } // works switch Foo.bar(1, 2) { case let .bar(a): print("bar", a) } // crashes as runtime switch Foo.bar(1) { case let .bar(a): print("bar", a) }
❌ Fatal error: unexpected enum case while switching on value of type 'Bar'
The text was updated successfully, but these errors were encountered:
Likely also handled by AndrewLitteken (JIRA User)'s work in SR-11159. (By rejecting the code at compile time, since all cases are not matched.)
Sorry, something went wrong.
No branches or pull requests
Environment
Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7)
Additional Detail from JIRA
md5: fe53c9c5e3f114a14ba0cbf8d0edd311
relates to:
Issue Description:
❌ Fatal error: unexpected enum case while switching on value of type 'Bar'
The text was updated successfully, but these errors were encountered: