Files
openide/java/java-tests/testData/codeInsight/completion/normal/CompleteConstantInSwitchStmt_after.java
Nikita Eshkeev 94956088c3 [java][switch completion] IDEA-271902 Fix the completion tail in case labels
Make SwitchUtils#isRuleFormatSwitch return true regardless if the passed switch block is used in a statement or an expression context.

GitOrigin-RevId: fce50d7a2e2936e6653b2eae1509e6c1fe76d7ad
2021-08-05 09:51:07 +00:00

10 lines
131 B
Java

class Main {
private static final int LEVEL = 0;
void f(Object o) {
switch(o) {
case LEVEL -> <caret>
}
}
}