blob: 63e2109560a3dea83e6ea2bc8fe7623e9e42eb88 (
plain) (
tree)
|
|
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])
}
}
|