blob: 5cd972129aa64a6faf59d8f8cdc56de44ba2edd4 (
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()): @unchecked) match {
case FooSeq(1, "a", x@_* ) =>
//println(x.toList)
x.asInstanceOf[x.type]
assert(x.isInstanceOf[x.type])
}
}
|