[SR-2354] inout parameter in subscript gives the wrong error message #44961
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
parser
Area → compiler: The legacy C++ parser
Additional Detail from JIRA
md5: 0bbd574dd373c16d9585687e14bb250e
Issue Description:
When I try to have an `inout` parameter in a subscript, the compiler won't let me compile:
However, the error message could be improved. The current message is: "Parameters may not have the 'var' specifier". This should probably be something like "Subscript parameters may not have the 'inout' specifier".
The text was updated successfully, but these errors were encountered: