test to verify that renaming fields of local objects works
#KT-6528 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
fun test() {
|
||||||
|
val a = object {
|
||||||
|
val foo = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
a.f<caret>oo
|
||||||
|
}
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
fun test() {
|
||||||
|
val a = object {
|
||||||
|
val bar = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
a.bar
|
||||||
|
}
|
||||||
+4
@@ -47,6 +47,10 @@ public class SimpleNameReferenceRenameTest extends LightCodeInsightTestCase {
|
|||||||
doTest("anotherRenamed");
|
doTest("anotherRenamed");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testMemberOfLocalObject() throws Exception {
|
||||||
|
doTest("bar");
|
||||||
|
}
|
||||||
|
|
||||||
public void testLocalFunction() throws Exception {
|
public void testLocalFunction() throws Exception {
|
||||||
doTest("xyzzy");
|
doTest("xyzzy");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user