"unreachable code" warning on reachable code #9505
Labels
errors and warnings
fixed in Scala 3
This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
help wanted
patmat
Milestone
Consider the following code which I've put in a file "unreachable.scala":
I get a "warning: unreachable code" for line 14 (the "case b: B" statement above) when I compile this.
However when I run p1.Main that line is clearly reachable, because "B" is output.
Might be related to #7369
The text was updated successfully, but these errors were encountered: