DeprecatedSymbolUsageFix: initial implementation

This commit is contained in:
Valentin Kipyatkov
2015-05-15 15:21:13 +03:00
parent 0a886320ca
commit df850d7035
73 changed files with 1314 additions and 40 deletions
@@ -0,0 +1,18 @@
// "Replace with 's.newFun(this)'" "true"
open class Base {
@deprecated("", ReplaceWith("s.newFun(this)"))
fun oldFun(s: String){}
open inner class Inner
}
class Derived : Base() {
inner class InnerDerived : Base.Inner() {
fun foo() {
<caret>oldFun("a")
}
}
}
fun String.newFun(x: Base){}