Do not inline property setter if it's not required (e.g. ReplaceWith)

So #KT-21237 Fixed
This commit is contained in:
Mikhail Glukhikh
2017-11-28 13:24:51 +03:00
parent bddaab9d48
commit 834c3fe62b
10 changed files with 20 additions and 14 deletions
@@ -14,6 +14,5 @@ class A {
fun foo() {
val a = A()
// Works incorrectly yet
a.<caret>old = "foo"
}
@@ -14,6 +14,5 @@ class A {
fun foo() {
val a = A()
// Works incorrectly yet
a.new
a.new = "foo"
}
@@ -15,7 +15,6 @@ class A {
fun foo() {
val a = A()
a.apply {
// Works incorrectly yet
<caret>old = "foo"
}
}
@@ -15,7 +15,6 @@ class A {
fun foo() {
val a = A()
a.apply {
// Works incorrectly yet
new
new = "foo"
}
}