Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/removeUnusedVariable/afterPatternVariable2.java
Andrey.Cherkasov 1c7aea69ba [java-inspections] 'Remove pattern variable' fix is available on deconstruction pattern component but produces red code
IDEA-298527

GitOrigin-RevId: 32645ea4938384d31bbe4750c3867e3b00f3fafe
2022-08-29 13:52:32 +00:00

10 lines
252 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) {
if (obj instanceof Rect(Point(double x, double y) point1, Point point2)) {}
}
}