mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
16 lines
232 B
Kotlin
Vendored
16 lines
232 B
Kotlin
Vendored
// "Replace with 'new'" "true"
|
|
// WITH_RUNTIME
|
|
|
|
class A {
|
|
@Deprecated("msg", ReplaceWith("new"))
|
|
var old = ""
|
|
get() = new
|
|
public set
|
|
|
|
var new = ""
|
|
}
|
|
|
|
fun foo() {
|
|
val a = A()
|
|
a.<caret>old = "foo"
|
|
} |