Files
kotlin-fork/compiler/testData/codegen/box/jvm8/defaults/compatibility/interfaceExtension.kt
T
2020-04-10 14:49:27 +03:00

14 lines
252 B
Kotlin
Vendored

// !JVM_DEFAULT_MODE: compatibility
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_RUNTIME
interface A {
@JvmDefault
fun String.foo(k: String) = "O" + k
}
fun box(): String =
object : A {
fun box() = "FAIL".foo("K")
}.box()