13a7bb95b3
^KT-56442 ^KT-36188
20 lines
317 B
Kotlin
Vendored
20 lines
317 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
|
|
}
|
|
|
|
class Impl : A2, B {
|
|
override fun foo(a: String) = a
|
|
}
|
|
|
|
fun box(): String = Impl().foo()
|