diff options
author | michelou <michelou@epfl.ch> | 2007-05-09 15:27:27 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-05-09 15:27:27 +0000 |
commit | 058d18cdf155ff739310227452cd20b6793b7461 (patch) | |
tree | bd616036427bed4efa04c704afa95198f938afd5 /test/files/run/bug1094.scala | |
parent | 96a817da9ac2cac73c4994cbc8cd9048e6f2227d (diff) | |
download | scala-058d18cdf155ff739310227452cd20b6793b7461.tar.gz scala-058d18cdf155ff739310227452cd20b6793b7461.tar.bz2 scala-058d18cdf155ff739310227452cd20b6793b7461.zip |
renamed tests for contribs #460 and #461
Diffstat (limited to 'test/files/run/bug1094.scala')
-rw-r--r-- | test/files/run/bug1094.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/bug1094.scala b/test/files/run/bug1094.scala new file mode 100644 index 0000000000..7fe8072b5f --- /dev/null +++ b/test/files/run/bug1094.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) +} |