From fd225503414b22421f43bb7d079ac3efc3eb8227 Mon Sep 17 00:00:00 2001 From: David MacIver Date: Sat, 8 Nov 2008 16:47:13 +0000 Subject: Paul's fix for bug #889. --- test/files/run/bug889.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/files/run/bug889.scala (limited to 'test/files/run/bug889.scala') 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) + } +} -- cgit v1.2.3