Files
kotlin-fork/compiler/testData/codegen/boxInline/syntheticAccessors/superProperty.kt
T
Ilya Chernikov 78ca733c38 FIR JS: add K2 variants of all other JS tests
except tests that are not possible to add without some modifications in
the test infra. See todos on the commented-out test declarations
2022-11-12 16:28:24 +01:00

28 lines
431 B
Kotlin
Vendored

// IGNORE_BACKEND_K2: JVM_IR, JS_IR
// IGNORE_BACKEND_K2_MULTI_MODULE: JVM_IR JVM_IR_SERIALIZE
// !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()
}