Files
kotlin-fork/compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance/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
541 B
Kotlin
Vendored

// CHECK_BYTECODE_LISTING
// FIR_IDENTICAL
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
// FIR status: NCDFE: Foo$DefaultImpls
// JVM_TARGET: 1.8
// WITH_STDLIB
// MODULE: lib
// !JVM_DEFAULT_MODE: all
// FILE: Foo.kt
interface Foo<T> {
fun foo(p: T) = p
}
// MODULE: main(lib)
// !JVM_DEFAULT_MODE: disable
// FILE: main.kt
interface DerivedInterface<T> : Foo<T>
class DerivedClass : DerivedInterface<String> {
override fun foo(p: String) = super.foo(p)
}
fun box(): String {
return DerivedClass().foo("OK")
}