mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 02:21:17 +07:00
11 lines
248 B
Java
11 lines
248 B
Java
// "Move switch branch 'Integer i' before 'Number n'" "true-preview"
|
|
class Main {
|
|
void test(Object o) {
|
|
int x = switch (o) {
|
|
case Integer i -> 1;
|
|
case Number n -> 2;
|
|
case String s -> 3;
|
|
default -> 4;
|
|
};
|
|
}
|
|
} |