Introduce Variable: Do not replace assignment left-hand sides

#KT-14240 Fixed
This commit is contained in:
Alexey Sedunov
2016-10-12 11:42:45 +03:00
parent ec00b9f3ea
commit 5c2ad48375
11 changed files with 98 additions and 0 deletions
@@ -0,0 +1,9 @@
// WITH_RUNTIME
class Foo(var bar: Bar)
class Bar(var baz: Int)
fun test() {
val foo = Foo(Bar(1))
println(<selection>foo.bar</selection>)
foo.bar.baz = foo.bar.baz + 1
}