mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-23 07:50:55 +07:00
10 lines
281 B
Java
10 lines
281 B
Java
// "Split values of 'switch' branch" "true-preview"
|
|
class C {
|
|
void foo(Object o) {
|
|
String s = "";
|
|
switch (o) {
|
|
case Number n, null<caret> -> s = "x";
|
|
default -> throw new IllegalStateException("Unexpected value: " + o);
|
|
}
|
|
}
|
|
} |