Rename: Do not replace Java references to synthetic component functions when renaming constructor parameter

#KT-9241 Fixed
This commit is contained in:
Alexey Sedunov
2016-05-27 16:24:55 +03:00
parent 958b402e42
commit d27f3c0189
8 changed files with 59 additions and 1 deletions
@@ -0,0 +1,10 @@
package test;
public class JavaClient {
void test(A a) {
a.getFooNew();
a.component1();
a.getBar();
a.component2();
}
}
@@ -0,0 +1,10 @@
package test
data class A(val fooNew: Int, val bar: String)
fun test(a: A) {
a.fooNew
a.component1()
a.bar
a.component2()
}
@@ -0,0 +1,10 @@
package test;
public class JavaClient {
void test(A a) {
a.getFoo();
a.component1();
a.getBar();
a.component2();
}
}
@@ -0,0 +1,10 @@
package test
data class A(val /*rename*/foo: Int, val bar: String)
fun test(a: A) {
a.foo
a.component1()
a.bar
a.component2()
}
@@ -0,0 +1,5 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test.kt",
"newName": "fooNew"
}