aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/t2945.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-05-16 14:25:39 +0200
committerMartin Odersky <odersky@gmail.com>2014-05-30 14:38:31 +0200
commit315c097d3a72077512fa06d7c26e8ad09a8b3f66 (patch)
treebe8502f05c4bb84580ba2e72e39b16b2fb029918 /tests/pending/pos/t2945.scala
parent996f47d48c3c10c51da58558643ec02844e45687 (diff)
downloaddotty-315c097d3a72077512fa06d7c26e8ad09a8b3f66.tar.gz
dotty-315c097d3a72077512fa06d7c26e8ad09a8b3f66.tar.bz2
dotty-315c097d3a72077512fa06d7c26e8ad09a8b3f66.zip
Triage of tests t27xx-t29xx.
Diffstat (limited to 'tests/pending/pos/t2945.scala')
-rw-r--r--tests/pending/pos/t2945.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/pending/pos/t2945.scala b/tests/pending/pos/t2945.scala
new file mode 100644
index 000000000..0379e9ba1
--- /dev/null
+++ b/tests/pending/pos/t2945.scala
@@ -0,0 +1,12 @@
+object Foo {
+ def test(s: String) = {
+ (s: Seq[Char]) match {
+ case Seq('f', 'o', 'o', ' ', rest1 @ _*) =>
+ rest1
+ case Seq('b', 'a', 'r', ' ', ' ', rest2 @ _*) =>
+ rest2
+ case _ =>
+ s
+ }
+ }
+}