aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t7668.scala
blob: 6657ffab6cb1742fb70782eb7d1b2e4ca9d13d42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
trait Space {
  type T
  val x: T
}

trait Extractor {
  def extract(s: Space): s.T
}

class Sub extends Extractor {
  def extract(ss: Space) = ss.x
}