-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SX1101 incorrectly reported for parameter that hides field #1707
Comments
Grabbing this |
@sharwell How did you get this code to produce an SX1101 diagnostic? |
After the above steps, you can diff the current code against HEAD to see the places where the SX1101 code fix made a mistake. This bug report was a simplification of one group of issues I saw in the result. |
OK, that is clear. Unfortunately for the description you picked the only example that is already handled 😉 |
Just my luck! 😄 |
Thanks to @vweijsters for some of the new tests. 👍 Fixes DotNetAnalyzers#1706 Fixes DotNetAnalyzers#1707
SX1101 is reported for the use of
this.
in the following code. The code fix results in a compilation warning (assignment made to same variable) and (more importantly) a change in code behavior.The text was updated successfully, but these errors were encountered: