mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
25 lines
566 B
Java
25 lines
566 B
Java
class SwitchStatement {
|
|
void m() {
|
|
{
|
|
<error descr="Case statement outside switch">case 0:</error>
|
|
}
|
|
|
|
{
|
|
<error descr="Case statement outside switch">default:</error>
|
|
}
|
|
|
|
switch (0) {
|
|
////////////////
|
|
/** */
|
|
<error descr="Statement must be prepended with case label">System.out.println();</error>
|
|
}
|
|
|
|
switch (0) {
|
|
<error descr="Statement must be prepended with case label">break;</error>
|
|
}
|
|
|
|
switch (0) {
|
|
<error descr="Statement must be prepended with case label">return;</error>
|
|
}
|
|
}
|
|
} |