test to verify that renaming fields of local objects works

#KT-6528 Fixed
This commit is contained in:
Dmitry Jemerov
2015-08-21 20:41:16 +02:00
parent 24ba5a46f1
commit d9a854608b
3 changed files with 18 additions and 0 deletions
@@ -0,0 +1,7 @@
fun test() {
val a = object {
val foo = 1
}
a.f<caret>oo
}
@@ -0,0 +1,7 @@
fun test() {
val a = object {
val bar = 1
}
a.bar
}
@@ -47,6 +47,10 @@ public class SimpleNameReferenceRenameTest extends LightCodeInsightTestCase {
doTest("anotherRenamed");
}
public void testMemberOfLocalObject() throws Exception {
doTest("bar");
}
public void testLocalFunction() throws Exception {
doTest("xyzzy");
}