Inline properties without setter / with default setter correctly
Related to KT-21237
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user