Files
Andrey.Cherkasov 375b7b102f [java-intentions] Implement quick-fix to create record from deconstruction pattern, if the identifier is unresolved
IDEA-303300

GitOrigin-RevId: f4cd752f81987885a72b5da8d898f875a5198dcb
2022-10-10 17:13:10 +00:00

12 lines
282 B
Java

// "Create inner record 'Rect'" "true-preview"
class Test {
void foo(Object obj) {
switch (obj) {
case Rect(Point point1, Point(double x, double y)) -> {}
default -> {}
}
}
private record Rect(Point point1, Point point) {
}
}