DeprecatedSymbolUsageFix: fixed bug with symbols from root package not imported

This commit is contained in:
Valentin Kipyatkov
2015-05-22 11:46:41 +03:00
parent 97d3620262
commit be9a3d10f6
8 changed files with 41 additions and 5 deletions
@@ -0,0 +1,6 @@
@deprecated("", ReplaceWith("newFun()"))
fun oldFun() {
newFun()
}
fun newFun() {}
@@ -0,0 +1,9 @@
// "Replace with 'newFun()'" "true"
package pack5
import newFun
import oldFun
fun foo() {
<caret>newFun()
}
@@ -0,0 +1,6 @@
@deprecated("", ReplaceWith("newFun()"))
fun oldFun() {
newFun()
}
fun newFun() {}
@@ -0,0 +1,8 @@
// "Replace with 'newFun()'" "true"
package pack5
import oldFun
fun foo() {
<caret>oldFun()
}