[FIR] Relax MULTIPLE_DEFAULTS_* to account for the K1 behavior

^KT-56442
^KT-36188
This commit is contained in:
Nikolay Lunyak
2023-08-18 12:18:52 +03:00
committed by Space Team
parent 3f1bf6112f
commit 13a7bb95b3
29 changed files with 505 additions and 27 deletions
@@ -0,0 +1,23 @@
// ISSUE: KT-60269
// WITH_STDLIB
interface Foo {
fun foo(param: Int = 1)
}
interface Bar {
fun foo(param: Int = 2)
}
interface Baz1 : Bar
class Baz : Baz1, Foo {
override fun foo(param: Int) {
println(param)
}
}
fun main() {
Baz().foo()
(Baz() as Foo).foo()
}