mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
17 lines
218 B
Kotlin
Vendored
17 lines
218 B
Kotlin
Vendored
// "Replace with 'newFun()'" "true"
|
|
|
|
class C {
|
|
@Deprecated("", ReplaceWith("newFun()"))
|
|
fun oldFun() {
|
|
newFun()
|
|
}
|
|
}
|
|
|
|
fun newFun(){}
|
|
|
|
fun foo() {
|
|
getC()?.<caret>oldFun()
|
|
}
|
|
|
|
fun getC(): C? = null
|