mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 03:51:12 +07:00
14 lines
291 B
Java
14 lines
291 B
Java
// "Add missing nested patterns" "true-preview"
|
|
class Main {
|
|
void foo(Object obj) {
|
|
double x = 0.0;
|
|
double y = 0.0;
|
|
switch (obj) {
|
|
case Point(double x1, double y1) -> {}
|
|
default -> {}
|
|
}
|
|
}
|
|
|
|
record Point(double x, double y) {}
|
|
}
|