Files
kotlin-fork/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField5.kt
T
2024-01-05 17:27:31 +00:00

20 lines
378 B
Kotlin
Vendored

// TARGET_BACKEND: JVM_IR
// TARGET_BACKEND: JS_IR
// TARGET_BACKEND: JS_IR_ES6
// TARGET_BACKEND: WASM
// IGNORE_BACKEND_K1: JVM_IR, JS_IR, JS_IR_ES6, WASM
open class Base {
open val x: CharSequence = "BASE"
// field = "BASE"
}
class Ok : Base() {
override val x: CharSequence
internal field: String = "OK"
}
fun box(): String {
return Ok().x
}