mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
15 lines
238 B
Kotlin
Vendored
15 lines
238 B
Kotlin
Vendored
// "Replace with 'newFun(s)'" "true"
|
|
|
|
open class Base {
|
|
@Deprecated("", ReplaceWith("newFun(s)"))
|
|
fun oldFun(s: String){}
|
|
|
|
fun newFun(s: String){}
|
|
}
|
|
|
|
class Derived : Base() {
|
|
fun foo() {
|
|
<caret>oldFun("a")
|
|
}
|
|
}
|