mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 11:36:59 +07:00
Part of IDEA-326939 Support multi-pattern switch labels that define no variables GitOrigin-RevId: c236438af58e1c74a2bf12a5985b33cedadb9cbb
10 lines
220 B
Java
10 lines
220 B
Java
// "Split values of 'switch' branch" "true-preview"
|
|
class C {
|
|
void foo(String o) {
|
|
switch (o) {
|
|
case "42" when s.isEmpty() -> {}
|
|
case String s when s.isEmpty() -> {}
|
|
}
|
|
}
|
|
}
|