summaryrefslogblamecommitdiff
path: root/test/files/pos/virtpatmat_exist_uncurry.scala
blob: e017da634329f88402854b30706c4b4a901ae3e7 (plain) (tree)
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 }
  }
}