[SR-9096] If a variable shadows a function, the diagnostic when attempting to invoke the variable like a function should suggest to rename the variable or qualify the function #51593
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: 0a5b8207de16c157bcc3a6ef6654c687
is duplicated by:
relates to:
Issue Description:
If I have code of the form:
currently the diagnostic says:
If the function call would match a callable were the variable not the closest match, this message should have fix-its of the form:
'Please rename the "type" variable', and
'Please qualify the function call with <Module name>', e.g. suggesting "Swift.type(of: x)" instead in the example.
The text was updated successfully, but these errors were encountered: