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,15 @@
// "Replace with 'newFun(this)'" "true"
// ERROR: Unresolved reference: newFun
class Outer {
inner class Inner {
@deprecated("", ReplaceWith("newFun(this)"))
fun oldFun() {}
}
fun newFun(inner: Inner) {}
}
fun foo(inner: Outer.Inner) {
<caret>newFun(inner)
}