mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
[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:
committed by
intellij-monorepo-bot
parent
bf984d947b
commit
002f45f937
+11
@@ -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;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user