[FIR] Relax MULTIPLE_DEFAULTS_* to account for the K1 behavior
^KT-56442 ^KT-36188
This commit is contained in:
committed by
Space Team
parent
3f1bf6112f
commit
13a7bb95b3
+22
@@ -0,0 +1,22 @@
|
||||
// FIR_IDENTICAL
|
||||
// ISSUE: KT-60269
|
||||
// WITH_STDLIB
|
||||
|
||||
interface Foo {
|
||||
fun foo(param: Int = 1)
|
||||
}
|
||||
|
||||
interface Bar {
|
||||
fun foo(param: Int = 2)
|
||||
}
|
||||
|
||||
class Baz : Bar, Foo {
|
||||
override fun foo(<!MULTIPLE_DEFAULTS_INHERITED_FROM_SUPERTYPES!>param: Int<!>) {
|
||||
println(param)
|
||||
}
|
||||
}
|
||||
|
||||
fun main() {
|
||||
Baz().foo()
|
||||
(Baz() as Foo).foo()
|
||||
}
|
||||
Reference in New Issue
Block a user