Rename: Do not replace Java references to synthetic component functions when renaming constructor parameter
#KT-9241 Fixed
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
package test;
|
||||
|
||||
public class JavaClient {
|
||||
void test(A a) {
|
||||
a.getFooNew();
|
||||
a.component1();
|
||||
a.getBar();
|
||||
a.component2();
|
||||
}
|
||||
}
|
||||
+10
@@ -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()
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package test;
|
||||
|
||||
public class JavaClient {
|
||||
void test(A a) {
|
||||
a.getFoo();
|
||||
a.component1();
|
||||
a.getBar();
|
||||
a.component2();
|
||||
}
|
||||
}
|
||||
+10
@@ -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()
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test.kt",
|
||||
"newName": "fooNew"
|
||||
}
|
||||
Reference in New Issue
Block a user