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
@@ -0,0 +1,10 @@
fun getArray(): Array<Int> = throw Exception()
fun getList(): MutableList<Int> = throw Exception()
fun fn() {
getArray()[1] = 2
getList()[1] = 2
getArray()[1]++
getList()[1]++
getArray()[1] += 2
getList()[1] += 2
}