mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-17 00:36:54 +07:00
14 lines
353 B
Java
14 lines
353 B
Java
// "Remove unreachable branches" "true"
|
|
class Test {
|
|
void test(R r) {
|
|
switch (r) {
|
|
case R(int i, String s)<caret> rec when true:
|
|
rec = new R(42, "hello");
|
|
System.out.println(s + i);
|
|
System.out.println(rec);
|
|
break;
|
|
}
|
|
}
|
|
|
|
record R(int i, String s) {}
|
|
} |