blob: 6b02580fa54ce9e92cf63c32e0cf740f03d599b9 (
plain) (
tree)
|
|
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)
|