diff options
Diffstat (limited to 'tests/pos/t2945.scala')
-rw-r--r-- | tests/pos/t2945.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/pos/t2945.scala b/tests/pos/t2945.scala new file mode 100644 index 000000000..54f0a7724 --- /dev/null +++ b/tests/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 + } + } +} |