[FIR] Capture array and indices for postfix/prefix increment/decrement
of array element (including overloaded indexed access operators, e.g., `a[b, c]++`). This prevents double-evaluation of the array and indices expressions, which may have side-effects.
This commit is contained in:
committed by
teamcityserver
parent
eb631bc429
commit
a2a4d94834
@@ -1,5 +1,3 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// Currently fails as the indices (`va`) are evaluated twice (on get and set).
|
||||
var log = ""
|
||||
|
||||
fun logged(value: String) =
|
||||
|
||||
Reference in New Issue
Block a user