Process default arguments in array convention calls

#KT-16520 Fixed
This commit is contained in:
Mikhail Bogdanov
2020-05-05 17:30:56 +02:00
parent 3134832396
commit adc770b604
10 changed files with 226 additions and 14 deletions
@@ -0,0 +1,17 @@
// IGNORE_BACKEND_FIR: JVM_IR
var result = "fail"
class A {
operator fun set(
i1: Int,
i2: Int = 1,
v: String
) {
result = "" + i1 + i2 + v
}
}
fun box(): String {
A()[1] = "OK"
return if (result != "11OK") "fail: $result" else "OK"
}