mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 03:51:12 +07:00
12 lines
282 B
Java
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) {
|
|
}
|
|
} |