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

28 lines
379 B
Kotlin
Vendored

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