summaryrefslogtreecommitdiff
path: root/test/files/run/patseq.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/patseq.scala')
-rw-r--r--test/files/run/patseq.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/patseq.scala b/test/files/run/patseq.scala
new file mode 100644
index 0000000000..7fe8072b5f
--- /dev/null
+++ b/test/files/run/patseq.scala
@@ -0,0 +1,11 @@
+// contribution bug #461
+
+object Test extends Application {
+ def foo(ps: String*) = "Foo"
+ case class X(p: String, ps: String*)
+ def bar =
+ X("a", "b") match {
+ case X(p, ps @ _*) => foo(ps : _*)
+ }
+ println(bar)
+}