summaryrefslogtreecommitdiff
path: root/test/files/neg/t1364.scala
blob: 6b02580fa54ce9e92cf63c32e0cf740f03d599b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
trait A {
  type T <: { type S[-U] }
  val x : T
  def y : x.S[AnyRef]
  def z : x.S[String] = y
}

object B extends A {
 type T = { type S[U] = U }
 val x : T = null
 def y : x.S[AnyRef] = new AnyRef
 def t : String = z
}

// println(B.t)