summaryrefslogtreecommitdiff
path: root/test/files/neg/t5830.scala
blob: c2df3dec8be5f2239f8e7646e62c9feb522758db (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' =>
  }
}