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
I remember discussing dangling else in this repo but I can't seem to find the issue anymore. We did not discuss this specific case tho and I do think it's a bug.
I don't know where it was discussed, but in the Changelog, the entry for 2.2.0 (February 1, 2018) includes this:
An inline if or switch statement with an ambiguous else, such as if no then if yes then alert 1 else alert 2, now compiles where the else always corresponds to the closest open then. Previously the behavior of an ambiguous else was unpredictable.
In short, the else should correspond to the most recently opened then, so yeah, I'm pretty sure you're right about this being a bug.
I remember discussing dangling else in this repo but I can't seem to find the issue anymore. We did not discuss this specific case tho and I do think it's a bug.
Input Code
Expected Behavior
Current Behavior
Possible Solution
Context
Environment
The text was updated successfully, but these errors were encountered: