fix find usages and rename for primary constructor properties
#KT-8807 Fixed
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
package testing.rename
|
||||
|
||||
public class Foo(public val /*rename*/second: String)
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package testing;
|
||||
|
||||
import testing.rename.*;
|
||||
|
||||
class JavaClient {
|
||||
public String foo(Foo f) {
|
||||
return f.getSecond();
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package testing.rename
|
||||
|
||||
public class Foo(public val /*rename*/first: String)
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package testing;
|
||||
|
||||
import testing.rename.*;
|
||||
|
||||
class JavaClient {
|
||||
public String foo(Foo f) {
|
||||
return f.getFirst();
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"newName": "second",
|
||||
"mainFile": "RenameKotlinPrimaryConstructorProperty.kt"
|
||||
}
|
||||
Reference in New Issue
Block a user