aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t889.scala
blob: 8e5d8241281392648fb32734c443678d27196dae (plain) (blame)
1
2
3
4
5
6
7
8
9
object Test extends dotty.runtime.LegacyApp {

  val a = List("a")

  a match {
    case Seq("a", "b", rest : _*) => println("a, b, " + rest)
    case Seq(first, rest : _*) => println("first: " + first + ", rest: " + rest)
  }
}