Files
kotlin-fork/compiler/testData/codegen/boxInline/syntheticAccessors/superProperty.kt
T
2018-06-28 12:26:41 +02:00

26 lines
312 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// 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()
}