Description
Minimized code
def foo = true match
case (b: Boolean): Boolean => ()
Output
-- [E029] Pattern Match Exhaustivity Warning: sandbox/match/example.scala:1:10 -
1 |def foo = true match
| ^^^^
| match may not be exhaustive.
|
| It would fail on pattern case: true, false
Expectation
no warning.
the wildcard case produces no warning:
def foo = true match
case (_: Boolean): Boolean => ()