Do not resolve alias imported references on rename

#KT-38096 Fixed
This commit is contained in:
Vladimir Dolzhenko
2020-04-09 20:38:01 +00:00
parent ac0d34089a
commit b51ae78b84
9 changed files with 82 additions and 24 deletions
@@ -0,0 +1,12 @@
import Some.referWithoutAlias
import Some.referWithAli as referWithAlias
fun referRenamed() {
println(referWithoutAlias)
println(referWithAlias)
}
object Some {
var referWithoutAlias = 0
var referWithAli = 0
}
@@ -0,0 +1,12 @@
import Some.referWithoutAlias
import Some.referWithAlias as referWithAlias
fun referRenamed() {
println(referWithoutAlias)
println(referWithAlias)
}
object Some {
var referWithoutAlias = 0
var referWithAlias/*rename*/ = 0
}
@@ -0,0 +1,5 @@
{
"type": "AUTO_DETECT",
"mainFile": "test.kt",
"newName": "referWithAli"
}