summaryrefslogtreecommitdiff
path: root/test/files/run/t7459f.scala
blob: 63e2109560a3dea83e6ea2bc8fe7623e9e42eb88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
object Test extends App {
  class C

  case class FooSeq(x: Int, y: String, z: C*)

  FooSeq(1, "a", new C()) match {
    case FooSeq(1, "a", x@_* ) =>
      //println(x.toList)
      x.asInstanceOf[x.type]
      assert(x.isInstanceOf[x.type])
  }
}