checkLValue for array indexing expression should resolve set method #KT-7218 Fixed
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user