mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 14:00:54 +07:00
IDEA-314047 GitOrigin-RevId: 8c24deb2dfb5361f08857d7933ab290476f4ce84
11 lines
230 B
Java
11 lines
230 B
Java
class C {
|
|
void foo(Object o) {
|
|
switch (o) {
|
|
case null -> bar("A");
|
|
case String s -> bar("B");
|
|
case Number n when n.intValue() == 42 -> bar("A");
|
|
default -> bar("C");
|
|
}
|
|
}
|
|
void bar(String s){}
|
|
} |