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