[SR-14022] Simplify unused l-value diagnostics wording #56413
Labels
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
good first issue
Good for newcomers
improvement
Additional Detail from JIRA
md5: 180690efa07d12e514e379ac1d6db3f6
Issue Description:
Cases like
currently (on main) it produces a "expression resolves to an unused variable" diagnostic which as discussed here is a bit jargon-heavy.
So the idea is to improve the wording for this diagnostic `expression_unused_lvalue`
Here are few possible improvements:
"result produced from expression is unused"
"result value produced from expression is unused"
"result value of the expression is unused"
"expression result in an unused %select{variable|property|subscript}0"
The text was updated successfully, but these errors were encountered: