[SR-11919] Fix "did you mean" diagnostics that don't include a question mark #54338
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
Additional Detail from JIRA
md5: 0e7401d03d738cc7a88cf37628e6e9c6
Issue Description:
When Swift displays a diagnostic which uses the phrase "did you mean…", it usually ends the message with a question mark. However, at least one such diagnostic—
could_not_find_enum_case
in DiagnosticsSema.def—does not have a question mark at the end.Someone should look through all the "did you mean" diagnostics and correct any that don't end with a question mark. There will definitely be at least one, but I don't know how many more there will be too.
Please also make sure you update any tests for these diagnostics. These tests might not break when you fix these bugs because
-verify
mode allows you to specify a substring of the full diagnostic.The text was updated successfully, but these errors were encountered: