mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
IDEA-203984 "Remove unreachable branches" quickfix breaks code on switch expression
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ class Main {
|
||||
}
|
||||
//6
|
||||
//7
|
||||
//other
|
||||
default -> "and more"; //other
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// "Remove unreachable branches" "false"
|
||||
class X {
|
||||
int x(E e) {
|
||||
// We cannot do anything here (yet)
|
||||
return switch (E.AA) {
|
||||
case A<caret>A:
|
||||
System.out.println(9);
|
||||
default: break 0;
|
||||
};
|
||||
}
|
||||
}
|
||||
enum E {
|
||||
AA,BB
|
||||
}
|
||||
Reference in New Issue
Block a user