aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/virtpatmat_exist_uncurry.scala
blob: 727922b31c0cab1c1b595a58bb14359ba6a56436 (plain) (blame)
1
2
3
4
5
6
object Test {
  trait Leaf[T] {
    def collect[U](f: PartialFunction[Leaf[_], U]): List[U]
    def leaves: List[Leaf[T]] = collect { case l: Leaf[T] => l }
  }
}