IDEA-66899 Completing enum constant defined in the same class (private) will insert full FQN (including parent class name) instead of EnumName.ENUM_VALUE

This commit is contained in:
peter
2011-03-28 17:26:37 +02:00
parent 27e9b343a7
commit 943c822123
4 changed files with 27 additions and 1 deletions
@@ -0,0 +1,9 @@
class Foo {
{
Bar b = FOOOO<caret>
}
enum Bar {
FOOOOOOO
}
}
@@ -0,0 +1,9 @@
class Foo {
{
Bar b = Bar.FOOOOOOO<caret>
}
enum Bar {
FOOOOOOO
}
}
@@ -514,6 +514,8 @@ public class NormalCompletionTest extends LightFixtureCompletionTestCase {
public void testFieldWithCastingCaret() throws Throwable { doTest(); }
public void testInnerEnumConstant() throws Throwable { doTest('\n'); }
public void testMethodReturnType() throws Throwable {
doTest();
}