Introduce Variable: Do not replace assignment left-hand sides
#KT-14240 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// WITH_RUNTIME
|
||||
class Foo(var bar: Int)
|
||||
|
||||
fun test() {
|
||||
val foo = Foo(1)
|
||||
val message = foo.bar
|
||||
println(message)
|
||||
foo.bar = message + 1
|
||||
}
|
||||
Reference in New Issue
Block a user