summaryrefslogtreecommitdiff
path: root/test/files/run/bug889.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/bug889.scala')
-rw-r--r--test/files/run/bug889.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/bug889.scala b/test/files/run/bug889.scala
new file mode 100644
index 0000000000..db6076e8e2
--- /dev/null
+++ b/test/files/run/bug889.scala
@@ -0,0 +1,9 @@
+object Test extends Application {
+
+ val a = List("a")
+
+ a match {
+ case Seq("a", "b", rest @ _*) => println("a, b, " + rest)
+ case Seq(first, rest @ _*) => println("first: " + first + ", rest: " + rest)
+ }
+}