mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 00:21:28 +00:00
19 lines
242 B
Kotlin
Vendored
19 lines
242 B
Kotlin
Vendored
// "Replace with 'newFun(this)'" "true"
|
|
|
|
open class C {
|
|
@Deprecated("", ReplaceWith("newFun(this)"))
|
|
fun oldFun(){}
|
|
}
|
|
|
|
fun newFun(c: C){}
|
|
|
|
class X {
|
|
companion object : C() {
|
|
}
|
|
|
|
fun foo() {
|
|
<caret>oldFun()
|
|
}
|
|
}
|
|
|