summaryrefslogtreecommitdiff
path: root/test/files/run/t7459f.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t7459f.scala')
-rw-r--r--test/files/run/t7459f.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/t7459f.scala b/test/files/run/t7459f.scala
new file mode 100644
index 0000000000..63e2109560
--- /dev/null
+++ b/test/files/run/t7459f.scala
@@ -0,0 +1,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])
+ }
+}