aboutsummaryrefslogtreecommitdiff
path: root/tests/run/matchonseq.scala
blob: 99138706b8004e6dd41bb3bec2a7543f4fb4b228 (plain) (blame)
1
2
3
4
5
6
7
8
object Test extends dotty.runtime.LegacyApp {
  Vector(1,2,3) match {
    case head +: tail => println("It worked! head=" + head)
  }
  Vector(1,2,3) match {
    case init :+ last => println("It worked! last=" + last)
  }
}