Files
Tagir Valeev efbff7c99c [java-highlighting] Move guard expression to switch label
Part of IDEA-326939 Support multi-pattern switch labels that define no variables

GitOrigin-RevId: c236438af58e1c74a2bf12a5985b33cedadb9cbb
2023-08-18 08:18:06 +00:00

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;
}
}
}