Inline properties without setter / with default setter correctly

Related to KT-21237
This commit is contained in:
Mikhail Glukhikh
2017-11-23 19:01:49 +03:00
parent fba50a8d15
commit bddaab9d48
12 changed files with 212 additions and 7 deletions
@@ -0,0 +1,18 @@
// "Replace with 'new'" "true"
// WITH_RUNTIME
class A {
@Deprecated("msg", ReplaceWith("new"))
var old
get() = new
set(value) {
new = value
}
var new = ""
}
fun foo() {
val a = A()
a.<caret>old += "foo"
}