fix find usages and rename for primary constructor properties

#KT-8807 Fixed
This commit is contained in:
Dmitry Jemerov
2015-08-24 18:48:59 +02:00
parent 0c87639514
commit ef4b32db0d
8 changed files with 69 additions and 14 deletions
@@ -0,0 +1,3 @@
package testing.rename
public class Foo(public val /*rename*/second: String)
@@ -0,0 +1,9 @@
package testing;
import testing.rename.*;
class JavaClient {
public String foo(Foo f) {
return f.getSecond();
}
}
@@ -0,0 +1,3 @@
package testing.rename
public class Foo(public val /*rename*/first: String)
@@ -0,0 +1,9 @@
package testing;
import testing.rename.*;
class JavaClient {
public String foo(Foo f) {
return f.getFirst();
}
}
@@ -0,0 +1,5 @@
{
"type": "MARKED_ELEMENT",
"newName": "second",
"mainFile": "RenameKotlinPrimaryConstructorProperty.kt"
}