[FIR] Capture receiver for pre/postfix dec/increment of qualified access

This prevents double-evaluation of the receiver expression, which may
have side-effects. E.g.: a.b++
This commit is contained in:
Mark Punzalan
2020-09-17 22:42:43 -07:00
committed by Mikhail Glukhikh
parent 393189db8d
commit f55ff8eb1b
13 changed files with 278 additions and 117 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
var holder = ""
var globalA: A = A(-1)
get(): A {