summaryrefslogtreecommitdiff
path: root/test/files/neg/t6675.scala
blob: 4d500b77badcac20f5e6765249426323daaf8a15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
object X {
  def unapply(s: String): Option[(Int,Int,Int)] = Some((1,2,3))
}

object Y {
  def unapplySeq(s: String): Option[Seq[(Int,Int,Int)]] = Some(Seq((1,2,3)))
}

object Test {
  "" match { case X(b) => b } // should warn under -Xlint. Not an error because of SI-6111

  "" match { case Y(b) => b } // no warning
}