[SR-14951] diag::witness_unavailable should include the message string from the @available attribute if present #57293
Labels
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
good first issue
Good for newcomers
improvement
Attachment: Download
Additional Detail from JIRA
md5: 847db0d4ebc811926f2c7650cf658dc0
Issue Description:
Given this code:
We produce this output:
Note that “write it yourself” does not appear in any of the diagnostics, and we wouldn’t see it at all if @available hadn’t been on the same line. It should probably appear in the second diagnostic, perhaps like this:
The text was updated successfully, but these errors were encountered: