summaryrefslogtreecommitdiff
path: root/test/pending/pos/switchUnbox.scala
blob: a97bff5521c81fff41ca8d523bab64a28312f42b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// this test has accompanying .flags file
//  that contains -Xsqueeze:on
//
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")
  }
}