mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 00:21:28 +00:00
18 lines
264 B
Kotlin
Vendored
18 lines
264 B
Kotlin
Vendored
// "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"
|
|
} |