blob: 11a727fd6abee449c13a426d61565f38f7033c8b (
plain) (
tree)
|
|
abstract class A {
def s: Boolean = { println("s"); r }
def r: Boolean
}
object Test extends A {
assert({ println("assert"); r == s }) // r constant type not replaced by true, r not initialized yet
override val r: true = {
println("r init")
true
}
def main(args: Array[String]): Unit = {}
}
|