Files
kotlin/compiler/testData/codegen/box/properties/classPrivateArtificialFieldInsideNested.kt
2019-11-19 11:00:09 +03:00

16 lines
279 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
abstract class Your {
abstract val your: String
fun foo() = your
}
class My {
private val back = "O"
val my: String
get() = object : Your() {
override val your = back
}.foo() + "K"
}
fun box() = My().my