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
In the first case, I'd expect the else to bind to the innermost if,
if (b) {
if (c) {
d;
} else {
e;
}
}
And it's quite the same with the switch case, except of course that a case doesn't take an else and therefore fails to compile.
It kind of dedents implicit blocks (too?) enthusiastically: if a then if c then b else e
=> IF ID:a INDENT:0 IF ID:c INDENT:0 ID:b DEDENT:0 DEDENT:0 ELSE INDENT:0 ID:e DEDENT:0 NEWLINE:\n
The text was updated successfully, but these errors were encountered:
compiles to
and
fails.
In the first case, I'd expect the else to bind to the innermost if,
And it's quite the same with the switch case, except of course that a
case
doesn't take anelse
and therefore fails to compile.It kind of dedents implicit blocks (too?) enthusiastically:
if a then if c then b else e
=>
IF ID:a INDENT:0 IF ID:c INDENT:0 ID:b DEDENT:0 DEDENT:0 ELSE INDENT:0 ID:e DEDENT:0 NEWLINE:\n
The text was updated successfully, but these errors were encountered: