mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 11:36:59 +07:00
10 lines
315 B
Java
10 lines
315 B
Java
// "Split values of 'switch' branch" "true-preview"
|
|
class C {
|
|
void foo(Object o) {
|
|
String s = "";
|
|
switch (o) {
|
|
case null, ((((Number n)) && ((n.intValue() == 42))))<caret> -> s = "x";
|
|
default -> throw new IllegalStateException("Unexpected value: " + o);
|
|
}
|
|
}
|
|
} |