[SR-14135] Improve diagnostic "delegating initializers in structs are not marked with 'convenience'" #56515
Labels
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
good first issue
Good for newcomers
improvement
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: ba5134bb6bbac761973e61ff90803626
Issue Description:
This question on StackOverflow has 15 votes and the answer has 22 votes: https://stackoverflow.com/questions/44183770/delegating-initializers-in-structs-are-not-marked-with-convenience
We should consider simplifying the diagnostic, say (strawman suggestion) "initializers in structs are not marked with 'convenience'".
We should also consider adding a fix-it which deletes the word 'convenience', so that even if the user doesn't understand the diagnostic, trying the fix-it does fix their issue.
The text was updated successfully, but these errors were encountered: