DeprecatedSymbolUsageFix: fixed bug with symbols from root package not imported
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user