summaryrefslogblamecommitdiff
path: root/test/files/pos/switchUnbox.scala
blob: 1d4b742ff9c055a5420c4d44a3319403123bf17e (plain) (tree)
1
2
3
4
5
6
7
8
            
                                     





                                   
object Foo {
  var xyz: (Int, String) = (1, "abc")
  xyz._1 match {
    case 1 => Console.println("OK")
    case 2 => Console.println("OK")
    case _ => Console.println("KO")
  }
}