blob: 47656049b941d4e81ffd0065ae5bd5085e17e7b9 (
plain) (
tree)
|
|
trait T { val x: Int = 0 }
object O extends T { override final val x = 1 }
object Test extends dotty.runtime.LegacyApp {
// was throwing an UnitializedFieldError as constant 1 is folded into the accessor
assert((O: T).x == 1)
}
|