aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/pos/switch-small.scala
blob: 9de9ca028e467d69b9a7b63cf587e88ac87640cf (plain) (tree)
1
2
3
4
5
6
7
8







                                      
import annotation._

object Test {
  def f(x: Int) = (x: @switch) match {
    case 1 => 1
    case _ => 2
  }
}