Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/removeUnusedVariable/beforePatternVariable7.java
Andrey.Cherkasov a9a92e5dca [java-inspections] 'Remove pattern variable' fix is not available on unused record pattern variables in switch'es
IDEA-302981

GitOrigin-RevId: 7b350efb5bf6010efacd5330e7a6e526aa9acfae
2022-10-04 23:38:05 +00:00

10 lines
257 B
Java

// "Remove pattern variable" "false"
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<caret>, double y) point1, Point point2) rect) {}
}
}