Files
openide/java/java-tests/testData/codeInsight/completion/normal/IndentingForSwitchCase.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

13 lines
238 B
Java

class Test {
void m(E e) {
switch (e) {
case AAA:
//simple 'B' can be associated with Object, it is allowed started from Java 21
case BB<caret>
}
}
}
enum E {
AAA, BBB
}