Introduce Variable: Do not replace assignment left-hand sides

#KT-14240 Fixed

GitOrigin-RevId: f2af7166af5662f5b49c7a5418a03afc67812f30
This commit is contained in:
Alexey Sedunov
2016-10-13 19:00:58 +03:00
committed by intellij-monorepo-bot
parent aa84e2599a
commit 665904df40
10 changed files with 97 additions and 0 deletions
@@ -0,0 +1,8 @@
// WITH_RUNTIME
class Foo(var bar: IntArray)
fun test() {
val foo = Foo(IntArray(1) { 1 })
println(<selection>foo.bar</selection>)
foo.bar[0] = foo.bar[0] + 1
}