Always generate temporary variables for receivers in a property compound assignment

(emulate 'resolve' behavior).
This commit is contained in:
Dmitry Petrov
2016-09-05 09:49:40 +03:00
committed by Dmitry Petrov
parent 28b3ea27f3
commit 4cc5fb7454
9 changed files with 227 additions and 90 deletions
@@ -0,0 +1,20 @@
object X1 {
var x1 = 0
object X2 {
var x2 = 0
object X3 {
var x3 = 0
}
}
}
fun test1(a: IntArray) {
var i = 0
a[i++]++
}
fun test2() {
X1.x1++
X1.X2.x2++
X1.X2.X3.x3++
}