Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/removeUnusedVariable/beforePatternVariable5.java
T
2022-10-04 23:38:05 +00:00

13 lines
299 B
Java

// "Remove pattern variable" "true-preview"
class Test {
record Point(double x, double y) {}
record Rect(Point point1, Point point2) {}
void foo(Object obj) {
switch (obj) {
case Rect(Point(double x, double y) point1<caret>, Point point2) rect -> {}
default -> {}
}
}
}