-
Notifications
You must be signed in to change notification settings - Fork 26
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
IDISP003 false positives for some patterns of disposing before re-assigning #481
Comments
Are all regressions? |
As far as I know, these have always been this way (I only started using this analyzer a couple of weeks ago). They are just things that I would expect to not have warnings. |
Ok, was just curious if I had dumbed things badly. Does not change things, needs tests and fixes either way. |
I found one more case that gives me a false positive for IDisp003 /// <summary>Test reassigning to a disposable field with nullcheck.</summary>
public void ReassignWithNullCheck()
{
if (_disposable != null)
{
return null;
}
else
{
_disposable = new Disposable(); // false positive IDISP003
}
} |
@TheR00st3r my preference is many small issues. |
The text was updated successfully, but these errors were encountered: