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