summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid MacIver <david.maciver@gmail.com>2008-11-08 16:47:13 +0000
committerDavid MacIver <david.maciver@gmail.com>2008-11-08 16:47:13 +0000
commitfd225503414b22421f43bb7d079ac3efc3eb8227 (patch)
tree4cfd4b5e08dd3bc18c9645d1fa9ffddd80a7f882 /test
parent8fd089646f8414a9e8483674bad52228dd2457fd (diff)
downloadscala-fd225503414b22421f43bb7d079ac3efc3eb8227.tar.gz
scala-fd225503414b22421f43bb7d079ac3efc3eb8227.tar.bz2
scala-fd225503414b22421f43bb7d079ac3efc3eb8227.zip
Paul's fix for bug #889.
Diffstat (limited to 'test')
-rw-r--r--test/files/run/bug889.check1
-rw-r--r--test/files/run/bug889.scala9
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/bug889.check b/test/files/run/bug889.check
new file mode 100644
index 0000000000..67ca2bf467
--- /dev/null
+++ b/test/files/run/bug889.check
@@ -0,0 +1 @@
+first: a, rest: List()
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)
+ }
+}