17 lines
258 B
Plaintext
Vendored
17 lines
258 B
Plaintext
Vendored
// "Replace with 'newFun()'" "true"
|
|
|
|
class C {
|
|
@Deprecated("", ReplaceWith("newFun()"))
|
|
fun oldFun(): Int {
|
|
return newFun()
|
|
}
|
|
}
|
|
|
|
fun newFun(): Int = 0
|
|
|
|
fun foo(): Int? {
|
|
return getC()?.<caret>let { newFun() }
|
|
}
|
|
|
|
fun getC(): C? = null
|