Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/deleteSwitchLabel19/afterWithoutTopLevelVar2.java
Andrey.Cherkasov 7615667adc [java-intentions] UnwrapSwitchLabelFix: rewrite record pattern support
IJ-CR-27938
IDEA-297387

GitOrigin-RevId: d275fd7a37d6b4e955cdc654bd676cb9048601be
2022-10-17 14:57:44 +00:00

10 lines
229 B
Java

// "Remove unreachable branches" "true"
class Test {
void test(Object obj) {
if (!(obj instanceof R)) return;
R r = (R) obj;
System.out.println(r.i() + r.s());
}
record R(int i, String s) {}
}