[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
@@ -0,0 +1,19 @@
|
||||
// FIR_IDENTICAL
|
||||
// ISSUE: KT-57076
|
||||
// WITH_STDLIB
|
||||
|
||||
interface I01 {
|
||||
fun some(x: Int = 1, y: Int)
|
||||
}
|
||||
|
||||
open class C01 {
|
||||
open fun some(x: Int = -1, y: Int = 2) {
|
||||
println("x = $x y = $y")
|
||||
}
|
||||
}
|
||||
|
||||
<!MULTIPLE_DEFAULTS_INHERITED_FROM_SUPERTYPES_WHEN_NO_EXPLICIT_OVERRIDE!>class C02<!>: C01(), I01
|
||||
|
||||
fun main(){
|
||||
C02().some() // K2: x = -1 y = 2
|
||||
}
|
||||
Reference in New Issue
Block a user