[SR-5983] Unused result warning phrasing is worse for closures than normal functions #48542
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
good first issue
Good for newcomers
Environment
Swift 4.0
Additional Detail from JIRA
md5: 9af0fbe9cbc462085d6aaa484bf3d040
Issue Description:
Gives:
The "but produces ..." addition is a bit awkward. This typing information doesn't seem particularly important, although maybe for closures it is harder to work out what the type actually is?
In any case, maybe the message for the
expression_unused_result_unknown
WARNING in include/swift/AST/DiagnosticsSema.def could be wordsmithed a bit, e.g.result of call to function returning '%0' is unused
.The text was updated successfully, but these errors were encountered: