summaryrefslogtreecommitdiff
path: root/test/files/run/patseq.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-05-09 13:41:01 +0000
committermichelou <michelou@epfl.ch>2007-05-09 13:41:01 +0000
commit96a817da9ac2cac73c4994cbc8cd9048e6f2227d (patch)
tree4cbbf91dcbe8b6db3c63458ab53d9164c4237678 /test/files/run/patseq.scala
parentfbccd6a31839eb0e1f7f67e7c0cc35771226a6e5 (diff)
downloadscala-96a817da9ac2cac73c4994cbc8cd9048e6f2227d.tar.gz
scala-96a817da9ac2cac73c4994cbc8cd9048e6f2227d.tar.bz2
scala-96a817da9ac2cac73c4994cbc8cd9048e6f2227d.zip
added tests for contribs #460 and #461
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)
+}