mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 19:16:40 +07:00
GitOrigin-RevId: 5f856519e56e61818e95cf63766fb6a54c6283ad
14 lines
272 B
Java
14 lines
272 B
Java
class C {
|
|
void foo(Object o) {
|
|
switch (o) {
|
|
case Point(double x, double y) when y > x -> bar("A");
|
|
case Number n -> bar("B");
|
|
case null -> bar("A");
|
|
default -> bar("C");
|
|
}
|
|
}
|
|
void bar(String s){}
|
|
}
|
|
|
|
record Point(double x, double y) {
|
|
} |