Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/removeUnusedVariable/beforeSwitchJava12Preview.java
Tagir Valeev 04f7352faa RemoveUnusedVariableUtil: code generation fixes
1. Support Java 12 switch rules and switch expressions (IDEA-203692)
2. Support void expression lambdas
3. Fix PSI structure when expression list statement is reduced to single expression
2018-12-20 13:50:01 +07:00

9 lines
148 B
Java

// "Remove variable 'i'" "true"
public class Main {
void test(String s) {
int <caret>i;
switch(s) {
case "foo" -> i = 1;
}
}
}