summaryrefslogtreecommitdiff
path: root/test/files/pos/t3856.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t3856.scala')
-rw-r--r--test/files/pos/t3856.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/t3856.scala b/test/files/pos/t3856.scala
new file mode 100644
index 0000000000..71c7bdc99d
--- /dev/null
+++ b/test/files/pos/t3856.scala
@@ -0,0 +1,8 @@
+case class C[T](x: T)
+
+case class CS(xs: C[_]*)
+
+object Test {
+ val x = CS(C(5), C("abc")) match { case CS(C(5), xs @ _*) => xs }
+ println(x)
+}