mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
15 lines
272 B
Plaintext
Vendored
15 lines
272 B
Plaintext
Vendored
// "Replace with 'newFun(t, k)'" "true"
|
|
|
|
open class Base<T> {
|
|
@Deprecated("", ReplaceWith("newFun(t, k)"))
|
|
fun <K> oldFun(t: T, k: K) = k
|
|
|
|
fun <K> newFun(t: T, k: K) = k
|
|
}
|
|
|
|
class Derived : Base<String>() {
|
|
fun foo() {
|
|
<caret>newFun("a", 1)
|
|
}
|
|
}
|