DeprecatedSymbolUsageFix - fixed bug with usage in derived class

This commit is contained in:
Valentin Kipyatkov
2015-05-19 15:02:46 +03:00
parent 450168d6c7
commit 5da192ddd4
6 changed files with 75 additions and 1 deletions
@@ -0,0 +1,14 @@
// "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>oldFun("a", 1)
}
}