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
3.*
object PartialFunctionNoWarning { // nice warning "abc" match { case "abc" => case "abc" => } // no warnings val pf: PartialFunction[String, Unit] = { case "abc" => case "abc" => } }
"unreachable code" when using match.
match
"unreachable code" shows when using partial function syntax too. In scala 2 it does show a warning.
The text was updated successfully, but these errors were encountered:
Good news! This appears to be fixed in 3.3.1-RC7 (so will be in 3.3.1) and on main.
Sorry, something went wrong.
Sorry @bishabosha, I think I filled in the labels at the same time as you, causing the mess above
Add regression test for issue i18493 (#18497)
d482108
Closes #18493
Successfully merging a pull request may close this issue.
Compiler version
3.*
Minimized code
Output
"unreachable code" when using
match
.Expectation
"unreachable code" shows when using partial function syntax too.
In scala 2 it does show a warning.
The text was updated successfully, but these errors were encountered: