mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
12 lines
291 B
Java
12 lines
291 B
Java
// "Move switch branch 'List n && 42 == 42' before 'List n'" "false"
|
|
import java.util.List;
|
|
|
|
class Main {
|
|
void test(Object o) {
|
|
String str = switch (o) {
|
|
case List n -> "List";
|
|
case List n && 42 == 42<caret> -> "List n && 42 == 42";
|
|
default -> "default";
|
|
};
|
|
}
|
|
} |