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(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")
}
}