blob: c97d57b38f30e0318477c6f7ff3f2f88b38d0874 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class Gox {
object Zed { }
class Zed { }
}
object Test {
type GoxZed = t#Zed forSome { type t <: Gox }
def main(args: Array[String]): Unit = {
val x = new Gox
val y: GoxZed = x
}
}
|