Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/deleteSwitchLabel19/afterUnwrapDeconstructionPattern.java
Andrey.Cherkasov 347fd05cd9 [java-intentions] UnwrapSwitchLabelFix produces red code when unwrapping case labels with deconstruction patterns
IDEA-297387

GitOrigin-RevId: cfdbdec0e83af90c325d41d583c749963686fd71
2022-08-02 08:33:45 +00:00

13 lines
267 B
Java

// "Remove unreachable branches" "true"
class Test {
void test(R r) {
int i = r.i();
String str = r.s();
System.out.println(i);
i = 42;
System.out.println(str + i);
}
record R(int i, String s, double ignored) {
}
}