summaryrefslogtreecommitdiff
path: root/test/files/neg/negSeq.scala
blob: 5eff5f33ea5e43df4e9459c1ceb77e0c0ab7d2ae (plain) (blame)
1
2
3
4
5
6
7
8
object seqapply_convention { // 2005-02-17 see comment in PatternMatcher::isSeqApply

  val x:Seq[Int] = List(1,2,3);

  x.match {
    case List(1,2,3) => true // type error: type Seq will not work
  }
}