mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
Part of IDEA-326939 Support multi-pattern switch labels that define no variables GitOrigin-RevId: c236438af58e1c74a2bf12a5985b33cedadb9cbb
15 lines
314 B
Java
15 lines
314 B
Java
// "Merge with the default 'switch' branch" "true"
|
|
class Test {
|
|
record R() {}
|
|
|
|
void foo(Object obj) {
|
|
switch (obj) {
|
|
case R() when true:
|
|
System<caret>.out.println(42);
|
|
break;
|
|
default:
|
|
System.out.println(42);
|
|
}
|
|
}
|
|
}
|