We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Version Used: VS 17.7.0 Preview 2.0
Steps to Reproduce:
class MyClass(int value) { public int Get() { var x = value; value++; // IDE0059: unnecessary assignment of a value to 'value' return x; } }
Expected Behavior: No diagnostic. Behavior should be similar to if a field 'int value' were explicitly declared in 'MyClass'.
Actual Behavior: IDE0059 is reported
Relates to #65697
The text was updated successfully, but these errors were encountered:
Ping @arkalyanms @dotnet/roslyn-ide for triage
Sorry, something went wrong.
Starting with Cyrus for first look.
Duplicate of #69643. Verified that this was fixed with #69748
mavasani
No branches or pull requests
Version Used: VS 17.7.0 Preview 2.0
Steps to Reproduce:
Expected Behavior: No diagnostic. Behavior should be similar to if a field 'int value' were explicitly declared in 'MyClass'.
Actual Behavior: IDE0059 is reported
Relates to #65697
The text was updated successfully, but these errors were encountered: