Files
kotlin-fork/compiler/testData/codegen/box/jvm8/defaults/allCompatibility/inheritedFunctionWithDefaultParameters.kt
T
Mikhael Bogdanov 0c0bd67a6b Add new tests
2020-04-09 07:37:30 +02:00

13 lines
200 B
Kotlin
Vendored

// !JVM_DEFAULT_MODE: all-compatibility
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
interface I {
fun foo(x: String = "OK"): String = x
}
interface J : I
object O : J
fun box(): String = O.foo()