[SR-13359] Improve diagnostic "has no subscript" for tuple indexing #55799
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
Additional Detail from JIRA
md5: 15d80a4471ab3131df3ed4c33639c189
Issue Description:
For the following code:
For tuples, we should special-case the diagnostic and say something that points out that tuple elements cannot be accessed using subscript notation.
If the subscript argument is a constant number, we could also offer a fix-it using dot-notation.
The text was updated successfully, but these errors were encountered: