summaryrefslogtreecommitdiff
path: root/test/files/neg/t8182.scala
blob: 1b3bc9821f4a1bcb51130f02055807e32f1d1f97 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
trait X {
  val a b     // something missing
}
trait Y {
  val a b[B]  // error then continue as for X
}
trait Z {
  (null: Any) match {
    case a b[B] => // bumpy recovery
  }
}
object B { def unapply[W](a: Any) = Some((1,2)) }
trait Z {
  (null: Any) match {
    case a B[T] b =>
  }
}