mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
switch expression: missed error on continue without lbl outside of switch (IDEA-204208)
This commit is contained in:
+1
@@ -54,6 +54,7 @@ class SwitchExpressions {
|
||||
System.out.println(switch (new Random().nextInt()) {
|
||||
case -1: <error descr="Return outside of enclosing switch expression">return;</error>
|
||||
case -2: <error descr="Continue outside of enclosing switch expression">continue lab;</error>
|
||||
case -3: <error descr="Continue outside of enclosing switch expression">continue;</error>
|
||||
default: <error descr="Break outside of enclosing switch expression">break lab;</error>
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user