Closed oliverlevay closed 1 year ago
It will try to warn about non-side-effecting expressions:
10 | if (key == left) then 0
| ^
| A pure expression does nothing in statement position; you may be omitting necessary parentheses
The issue seems to be that tuple construction is not detected as "pure (for purposes of error reporting)".
Is that a bug or a feature request?
This code has lost values that are unreachable. It would be awesome if this fact was warned about to the developer.