mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 21:44:49 +07:00
IDEA-118551 Duplicated enum field in completion
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import static C.A.*;
|
||||
class C {
|
||||
enum A {Abc}
|
||||
|
||||
public static void main(A a) {
|
||||
switch (a) {
|
||||
case A<caret>
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import static C.A.*;
|
||||
class C {
|
||||
enum A {Abc}
|
||||
|
||||
public static void main(A a) {
|
||||
switch (a) {
|
||||
case Abc:<caret>
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
@@ -1143,6 +1143,7 @@ class XInternalError {}
|
||||
""")
|
||||
assertOneElement myFixture.completeBasic()
|
||||
}
|
||||
public void testStaticallyImportedFieldsTwiceSwitch() { doTest() }
|
||||
|
||||
public void testStatementKeywords() {
|
||||
myFixture.configureByText("a.java", """
|
||||
|
||||
Reference in New Issue
Block a user