mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 14:50:53 +07:00
Part of IDEA-326939 Support multi-pattern switch labels that define no variables GitOrigin-RevId: c236438af58e1c74a2bf12a5985b33cedadb9cbb
11 lines
257 B
Java
11 lines
257 B
Java
// "Split values of 'switch' branch" "true-preview"
|
|
class C {
|
|
void foo(Object o) {
|
|
switch (o) {
|
|
case Integer _, String _ when<caret> o.hashCode() > 0:
|
|
System.out.println("hello");
|
|
break;
|
|
}
|
|
}
|
|
}
|