mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-04 17:38:08 +07:00
IDEA-302981 GitOrigin-RevId: 7b350efb5bf6010efacd5330e7a6e526aa9acfae
13 lines
287 B
Java
13 lines
287 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, Point point2) -> {}
|
|
default -> {}
|
|
}
|
|
}
|
|
} |