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