blob: 985a2d0b08413c229315cde58a50e60f7c763825 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
final case class T2[+A, +B](a: A, b: B)
class A {
def f1 = T2(1, 2) match {
case Seq(x) =>
case _ =>
}
def f2 = T2(1, 2) match {
case _: T2[Int, Int] => /* nowarn */
case _ =>
}
def f3 = T2(1, 2) match {
case _: T2[_, Int] => /* nowarn */
case _ =>
}
}
|