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