Files
kotlin-fork/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.fir.kt.txt
T
2020-11-26 00:15:13 +03:00

18 lines
353 B
Plaintext
Vendored

interface IA {
abstract operator fun get(index: String): Int
}
interface IB {
abstract operator fun IA.set(index: String, value: Int)
}
fun IB.test(a: IA) {
{ // BLOCK
val <<array>>: IA = a
val <<index_0>>: String = ""
(<this>, <<array>>).set(index = <<index_0>>, value = <<array>>.get(index = <<index_0>>).plus(other = 42))
}
}