Files
kotlin-fork/compiler/testData/codegen/boxInline/syntheticAccessors/superCall.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

29 lines
444 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 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()
}