aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/pos/t5033.scala
blob: 3aa9fce5f403eb1f7e2139377fb6a5a647626bea (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                    
trait Eater {
  type Food[T]
}

trait Fruit {
  type Seed
}

trait PipExtractor {
  def extract(a: Fruit)(b: Eater): b.Food[a.Seed]
}

trait LaserGuidedPipExtractor extends PipExtractor {
  def extract(f: Fruit)(g: Eater): g.Food[f.Seed]
}