The compiler error for missing a break in switch case with a body is misspelled in the workbench.
Switch: fall-trough case's can't have a body
Should be
Switch: fallthrough cases can't have a body
The compiler error for missing a break in switch case with a body is misspelled in the workbench.
Switch: fall-trough case's can't have a body
Should be
Switch: fallthrough cases can't have a body
Compile the following
int a = 1; switch (a) { case 2: { int b = 0; }; default: { int b = 0; }; }
Hello antihax.
This works as designed. fall through is available only to case without a body.
Regards,
Geez
Hello antihax.
It appears we have misunderstood, and in that case we will fix the spelling error on our end.
Regards,
Geez