Files
openide/java/java-tests/testData/codeInsight/completion/normal/StaticallyImportedFieldsTwiceSwitch.java
Mikhail Pyltsin 0939782a59 [java-completion] IDEA-335904 Completion in enhanced switch for enum
- offer classes and interfaces
- offer `default` after `case null,`

GitOrigin-RevId: f1d0567efeafcd5320db88089bab7eb1dbe17b9f
2023-11-01 10:23:53 +00:00

12 lines
219 B
Java

import static C.AA.*;
class C {
enum AA {Abc}
public static void main(AA a) {
switch (a) {
//simple 'A' can be associated with enum AA, it is allowed started from Java 21
case Ab<caret>
}
}
}