e4c851e3ce
Avoid generating synthetic overrides in subclass It has been already working for PSI2IR because fake overrides there don't inherit default values for parameters, while they do it in FIR
16 lines
234 B
Kotlin
Vendored
16 lines
234 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
|
|
open class A {
|
|
@JvmOverloads
|
|
fun foo(x: String, y: String = "", z: String = "K"): String {
|
|
return x + y + z
|
|
}
|
|
}
|
|
|
|
class B : A()
|
|
|
|
fun box(): String {
|
|
return B().foo("O")
|
|
}
|