case true => case false =>
should be case true => case _ =>
#12934
Labels
Milestone
case true => case false =>
should be case true => case _ =>
#12934
Reproduction steps
Scala version: 2.13.12
under
-opt:local
for basic hygiene, an exhaustively enumerated match should be the same as the match with a default wildcard case.Problem
The matches should be in every way the same. We know the semantics of
false.==
. Similarly for enums. I didn't check dotty.The text was updated successfully, but these errors were encountered: