mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
16 lines
321 B
Java
16 lines
321 B
Java
// "Remove unreachable branches" "true"
|
|
import org.jetbrains.annotations.*;
|
|
|
|
class Test {
|
|
void foo(Object obj) {
|
|
switch (obj) {
|
|
case X x -> { }
|
|
default -> { return; }
|
|
}
|
|
|
|
X x1 = (X) obj;
|
|
System.out.println(x1.x().x().x().x());
|
|
}
|
|
}
|
|
|
|
record X(@NotNull X x) { } |