Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createFieldFromUsage/afterSwitchCaseLabel.java
Bas Leijdekkers b3d096b7fc Java: create constant from usage when non-constant is not compilable (IDEA-337261)
GitOrigin-RevId: 5be5a1c196902431a582768fbc461d0d09b14aac
2023-11-09 21:59:18 +00:00

12 lines
177 B
Java

// "Create constant field 'constant'" "true-preview"
class A {
private static final int constant = ;
void x(int i) {
switch (i) {
case constant:
}
}
}