You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A label for a block is not available with compile error.
var a = 10;
LABEL: {
Error: syntax error near the <(unknown)>:2
a = 20;
while (1) {
break LABEL if (++a == 50);
}
a = 100;
}
System.println("a = %{a}"); // a = 50
The text was updated successfully, but these errors were encountered:
I changed a specification for a label to be with two colons.
It's okay with 1 colon as well for a backward compatible, but a colon should be needed twice only for a block.
A label for a block is not available with compile error.
The text was updated successfully, but these errors were encountered: