Files
kotlin-fork/compiler/testData/codegen/boxInline/syntheticAccessors/superProperty.kt
T
2021-09-30 20:09:00 +03:00

27 lines
366 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// !LANGUAGE: -ProhibitSuperCallsFromPublicInline
// FILE: 1.kt
package test
open class A {
open val test = "OK"
}
object X : A() {
override val test: String
get() = "fail"
inline fun doTest(): String {
return super.test
}
}
// FILE: 2.kt
import test.*
fun box(): String {
return X.doTest()
}