open class Bar(val prop: String) object Foo : Bar("OK") { val p = Foo.prop val p2 = prop val p3 = this.prop } fun box(): String = Foo.prop