Files
kotlin-fork/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.kt.txt
T
Vladimir Sukharev bae8b283c7 [IR] Normalize temp var names in Kotlin-like dump
^KT-61983 Fixed
2023-10-11 07:49:35 +00:00

18 lines
323 B
Kotlin
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 tmp_0: IA = a
val tmp_1: String = ""
(<this>, tmp_0).set(index = tmp_1, value = tmp_0.get(index = tmp_1).plus(other = 42))
}
}