Rename: Update references to facade class when renaming file via matching top-level class

#KT-11903 Fixed
(cherry picked from commit a1d9a25)
This commit is contained in:
Alexey Sedunov
2016-06-22 17:38:06 +03:00
parent 932892243c
commit b83902a8b5
9 changed files with 40 additions and 1 deletions
@@ -0,0 +1,4 @@
package foo
class TopLevel2 {}
fun topMe() {}
@@ -0,0 +1,7 @@
package foo;
public class TopUser {
public void use() {
TopLevel2Kt.topMe();
}
}
@@ -0,0 +1,4 @@
package foo
class /*rename*/TopLevel {}
fun topMe() {}
@@ -0,0 +1,7 @@
package foo;
public class TopUser {
public void use() {
TopLevelKt.topMe();
}
}
@@ -0,0 +1,6 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "foo/TopLevel.kt",
"newName": "TopLevel2",
"withRuntime": "true"
}