blob: 4e162dd145e29768e7d9fc7765695b0dc0fdc430 (
plain) (
tree)
|
|
// This is supposed to be compiled by Dotty
class Sub extends T
class A extends S2T with S2Tprivate {
val a: Int = 3
var b = 2
}
object Main {
def main(args: Array[String]): Unit = {
val sub = new Sub
println(sub.d)
println(sub.v)
println(sub.O)
println(sub.w)
val a = new A
a.x += a.y
println(a.x)
println(a.f(a.a + a.b))
a.xx += a.yy
println(a.x)
println(a.ff(a.xx))
}
}
|