summaryrefslogtreecommitdiff
path: root/test/files/run/t3835.scala
blob: 766b6ddc2e4dfe8572b69c071a34259daebb2b93 (plain) (blame)
1
2
3
4
5
6
7
8
9
object Test extends App {
  // work around optimizer bug SI-5672  -- generates wrong bytecode for switches in arguments
  // virtpatmat happily emits a switch for a one-case switch
  // this is not the focus of this test, hence the temporary workaround
  def a = (1, 2, 3) match { case (r, \u03b8, \u03c6) => r + \u03b8 + \u03c6 }
  println(a)
  def b = (1 match { case \u00e9 => \u00e9 })
  println(b)
}