mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-08 12:36:52 +07:00
22 lines
495 B
Java
22 lines
495 B
Java
// "Remove unreachable branches" "true"
|
|
import org.jetbrains.annotations.*;
|
|
|
|
class Test {
|
|
void foo(Object obj) {
|
|
switch (obj) {
|
|
case X x -> { }
|
|
default -> { return; }
|
|
}
|
|
|
|
switch (obj) {
|
|
case X<caret>(X(X(X(X x5)) x3)) x1 -> {
|
|
System.out.println(x1);
|
|
System.out.println(x3);
|
|
System.out.println(x5);
|
|
}
|
|
default -> { }
|
|
}
|
|
}
|
|
}
|
|
|
|
record X(@NotNull X x) { } |