[java-dfa] Switching on expression of unknown type should not mark branches as unreachable

Fixes IDEA-371191 Unhelpful "unreachable switch label" warning

GitOrigin-RevId: d3e92efc518590ed7c5b7219b9ba0378c292507d
This commit is contained in:
Tagir Valeev
2025-05-23 16:06:16 +00:00
committed by intellij-monorepo-bot
parent bf984d947b
commit 002f45f937
3 changed files with 17 additions and 1 deletions
@@ -0,0 +1,11 @@
enum E {
A, B, C;
int x(E e, String s) {
return switch (<error descr="Cannot resolve symbol 'd'">d</error>) {
case A -> 1;
case B -> 2;
case C -> 3;
};
}
}