Files
kotlin-fork/compiler/testData/codegen/box/jvm8/defaults/allCompatibility/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

28 lines
556 B
Kotlin
Vendored

// CHECK_BYTECODE_LISTING
// FIR_IDENTICAL
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
// FIR status: questionable bytecode listing difference (open/final methods in final class)
// !JVM_DEFAULT_MODE: all-compatibility
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_COROUTINES
// WITH_STDLIB
interface Foo {
fun bar(): String {
return "OK"
}
}
class FooClass : Foo {
override fun bar(): String {
return object {
fun run()= super@FooClass.bar()
}.run()
}
}
fun box(): String {
return FooClass().bar()
}