mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-18 22:42:49 +07:00
7e1064ea3c
GitOrigin-RevId: 22a46c15d8900d8a31514846755a013f6a67ad42
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);
|
|
}
|
|
}
|
|
} |