mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
13 lines
316 B
Java
13 lines
316 B
Java
// "Remove unreachable branches" "true"
|
|
class Test {
|
|
void test(Object obj) {
|
|
if (!(obj instanceof R)) return;
|
|
switch (obj) {
|
|
case R(int i, String s)<caret> when true:
|
|
System.out.println(i + s);
|
|
break;
|
|
}
|
|
}
|
|
|
|
record R(int i, String s) {}
|
|
} |