aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t2187-2.scala
blob: 506cc496f50ededb03e6b37d276ca9f0e045a769 (plain) (tree)
1
2
3
4
5
6
7






                                           
class Test {
  def test[A](list: List[A]) = list match {
    case Seq(x, y) => "xy"
    case Seq(x) => "x"
    case _ => "something else"
  }
}