| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2021-02-21 | Do not suggest `;` if expression is side effect free | Esteban Küber | -8/+0 | |
| When a tail expression isn't unit, we previously always suggested adding a trailing `;` to turn it into a statement. This suggestion isn't appropriate for any expression that doesn't have side-effects, as the user will have likely wanted to call something else or do something with the resulting value, instead of just discarding it. | ||||
| 2021-02-21 | Suggest `return`ing tail expressions that match return type | Esteban Küber | -2/+20 | |
| Some newcomers are confused by the behavior of tail expressions, interpreting that "leaving out the `;` makes it the return value". To help them go in the right direction, suggest using `return` instead when applicable. | ||||
| 2020-07-22 | Correctly parse `{} && false` in tail expression | Esteban Küber | -0/+33 | |
| Fix #74233. | ||||
