checkLValue for array indexing expression should resolve set method #KT-7218 Fixed

This commit is contained in:
Ilya Ryzhenkov
2015-04-01 14:18:53 +03:00
parent a986d913c3
commit 2f02024c24
6 changed files with 52 additions and 14 deletions
@@ -127,12 +127,12 @@ class Test() {
a[4]++
a[6] += 43
<!VARIABLE_EXPECTED!>ab.getArray()<!>[54] = 23
<!VARIABLE_EXPECTED!>ab.getArray()<!>[54]++
ab.getArray()[54] = 23
ab.getArray()[54]++
(@f a)[3] = 4
(a : Array<Int>)[4]++
(<!VARIABLE_EXPECTED!>ab.getArray()<!> : Array<Int>)[54] += 43
(ab.getArray() : Array<Int>)[54] += 43
this<!NO_SET_METHOD!><!UNRESOLVED_REFERENCE!>[<!>54<!UNRESOLVED_REFERENCE!>]<!><!> = 34
}