mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 21:53:58 +07:00
IDEA-310260 GitOrigin-RevId: ce07977550e3a5c15d63f0a6eeed1d7341c74164
15 lines
305 B
Java
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);
|
|
}
|
|
}
|
|
}
|