[SR-2421] incorrect reporting of "Immutable value 'contents' was never used" #45026
Labels
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
good first issue
Good for newcomers
improvement
Attachment: Download
Additional Detail from JIRA
md5: 20a9ff0f4cc5784b4f22cf5ca5094487
Issue Description:
make a simple call like that:
you will get a warning:
....swift:62:7: Immutable value 'contents' was never used; consider replacing with '_' or removing it
If you perform the suggestion you get:
you got:
:65:4: Use of unresolved identifier 'contents'
Worse:
If You copy the SAME code outside, it works!
The text was updated successfully, but these errors were encountered: