aboutsummaryrefslogblamecommitdiff
path: root/tests/pending/pos/t2945.scala
blob: 0379e9ba1603623f53845a091116c8907a7e6e39 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
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
    }
  }
}