blob: a526017b6d444d26d40e5b09cb38b459fb505fca [file] [log] [blame]
// "Replace with 'newFun()'" "true"
// WITH_RUNTIME
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