Files
kotlin-fork/compiler/testData/codegen/box/defaultArguments/function/kt36188_2.kt
T
2023-08-28 10:57:40 +00:00

22 lines
334 B
Kotlin
Vendored

// IGNORE_BACKEND: JS
// Test for KT-36188 bug compatibility between non-IR and IR backends
interface A {
fun foo(a: String = "OK"): String
}
interface A2 : A
interface B {
fun foo(a: String = "Fail"): String
}
interface C : A2, B
class Impl : C {
override fun foo(a: String) = a
}
fun box(): String = Impl().foo()