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
The CC0008 analyser does not check if the variable is used in the initialiser code.
class Point { public Point(int x) { X = x; } public int X { get; set; } public int Y { get; set; } } void Foo() { var myPoint = new Point(5); myPoint.Y = 5 + myPoint.X; }
The refactored code has a compile error since the initializer cannot access the unassigned variable.
The text was updated successfully, but these errors were encountered:
Bug confirmed.
Sorry, something went wrong.
fix bug in CC0008 when accessing declaring variable
cda7e65
Closes code-cracker#324
Merge pull request #326 from giggio/fix-cc0008
dd81051
Fix bug in CC0008 when accessing declaring variable (closes #324)
ba9fdac
giggio
Successfully merging a pull request may close this issue.
The CC0008 analyser does not check if the variable is used in the initialiser code.
The refactored code has a compile error since the initializer cannot access the unassigned variable.
The text was updated successfully, but these errors were encountered: