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
traitA {
sealedabstractclassXprivateclassX1extendsXwithX2 { }
privatetraitX2extendsXsealedtraitX3extendsXdeff(x: X) = x match {
case_: X1=>0
}
}
Output
-- [E029] PatternMatchExhaustivityWarning:----------------------------------7|deff(x: X) = x match {
|^|match may not be exhaustive.
||It would fail on pattern case:_: X2, _: X3
Expectation
No warning, like scala 2
The text was updated successfully, but these errors were encountered:
port fixes from scala 2 that closed scala/scala#9211
Compiler version
3.1.1
Minimized code
Output
Expectation
No warning, like scala 2
The text was updated successfully, but these errors were encountered: