[SR-3167] Improve error when using keywords as identifiers #45755
Labels
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
good first issue
Good for newcomers
improvement
parser
Area → compiler: The legacy C++ parser
Additional Detail from JIRA
md5: dfc0ab758b4f132463ad177824c23f7f
Issue Description:
We can do better than this. Someone inside Apple suggested "keyword 'switch' found where an identifier should be in a function's name. Try picking a different name for the function or putting backticks (`) around the name." The suggested fixes (the second sentence) should probably be two separate notes rather than crammed into the main diagnostic.
The text was updated successfully, but these errors were encountered: