blob: 18e89c20f1849b26ab4479b1e2c4dc688a445134 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
import scala.annotation.switch
class Test {
def unreachable(ch: Char) = (ch: @switch) match {
case 'a' => println("b") // ok
case 'a' => println("b") // unreachable
case 'c' =>
}
}
|