blob: 58c3a1be38f50b2d68129639f87c3eaecd7d580b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
t5830.scala:6: warning: unreachable code
case 'a' => println("b") // unreachable
^
t5830.scala:4: warning: could not emit switch for @switch annotated match
def unreachable(ch: Char) = (ch: @switch) match {
^
error: No warnings can be incurred under -Xfatal-warnings.
two warnings found
one error found
|