dc9ed5656e
It's possible to write a fix that would prevent false positives with this checker, but the core intuition behind it is invalid. This checker assumes that it's enough to only check direct overriddens, while in reality even simple `Source` override functions are not allowed to contain default values, so they can't be used to make judgements about them. ^KT-59408 Open ^KT-59408 Open ^KT-61095 Fixed ^KT-61165 Fixed ^KT-61029 Fixed
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()
|