aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i0091-infpaths.scala
blob: e3b15933ec8aa09eebe40786888b78813178b1e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
object infpaths {

  object a {
    trait T { t =>
      type M <: t.b.M                                 // error
      type T <: a.T
      val b: t.T
    }
    val x: a.T = ???
  }

  val m1: a.x.M = ???
  val m2: a.x.b.M = m1                                // error
  val m3: a.x.b.b.M = m2                              // error

}