Preserve origins when desugaring augmented array assignments

^KT-63827: Fixed
This commit is contained in:
vladislav.grechko
2023-12-20 17:15:40 +00:00
committed by Space Team
parent eb790732fd
commit 77d0d1073e
27 changed files with 259 additions and 161 deletions
@@ -0,0 +1,12 @@
class Foo {
companion object {
operator fun get(n: Int): Int = 42
}
}
private operator fun Any.set(i: Int, value: Int) {}
fun usageFoo() {
<expr>Foo[1] -= 5</expr>
}