Rename: Fix rename of import alias referring to object member

#KT-18096 Fixed
This commit is contained in:
Alexey Sedunov
2017-06-02 16:15:46 +03:00
parent 1ded171720
commit a0629bfc58
8 changed files with 63 additions and 2 deletions
@@ -0,0 +1,9 @@
import Foo.foo as baz
object Foo {
fun foo() {}
}
fun test() {
baz()
}
@@ -0,0 +1,9 @@
import Foo.foo as bar
object Foo {
fun foo() {}
}
fun test() {
/*rename*/bar()
}
@@ -0,0 +1,5 @@
{
"type": "AUTO_DETECT",
"mainFile": "test.kt",
"newName": "baz"
}