Files
2023-01-15 05:39:32 +00:00

15 lines
305 B
Java

// "Merge with the default 'switch' branch" "false"
class Test {
record R() {}
void foo(Object obj) {
switch (obj) {
case R r:
System<caret>.out.println(42);
break;
default:
System.out.println(42);
}
}
}