You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
objectO2:sealedtraitAcaseclassB() extendsAdefbigMatch(x: A) = x matchcaseB() =>case _ =>// no warning
Expectation
The line case _ => should have the same warning as other configurations: Unreachable case except for null (if this is intentional, consider writing case null => instead).
This issue was picked for the Issue Spree No. 34 of 01 August 2023 which takes place in 7 days. @dwijnand, @XLPI, antognini will be working on it. If you have any insight into the issue or guidance on how to fix it, please leave it here.
Compiler version
3.3.0 / 3.3.1-RC1
Minimized code
Expectation
The line
case _ =>
should have the same warning as other configurations:Unreachable case except for null (if this is intentional, consider writing case null => instead).
The above as well as working examples can be found at:
https://scastie.scala-lang.org/ZS2DRtbBQSODAVpTotH45w
The text was updated successfully, but these errors were encountered: