Skip to content
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

Fix CA1805 assignment of default to nullable #3785

Merged
merged 1 commit into from
Jun 28, 2020

Conversation

stephentoub
Copy link
Member

One more case found from dotnet/runtime. Code like:

private int? _value = 0;

shouldn't warn, but it currently does.

This is the last issue discovered in running the rule over dotnet/runtime:
dotnet/runtime#38410

One more case found from dotnet/runtime.  Code like:
```C#
private int? _value = 0;
```
shouldn't warn, but it currently does.
@stephentoub stephentoub requested a review from a team as a code owner June 25, 2020 20:22
@codecov
Copy link

codecov bot commented Jun 25, 2020

Codecov Report

Merging #3785 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #3785   +/-   ##
=======================================
  Coverage   95.78%   95.78%           
=======================================
  Files        1100     1100           
  Lines      246317   246319    +2     
  Branches    14622    14622           
=======================================
+ Hits       235923   235931    +8     
  Misses       8603     8603           
+ Partials     1791     1785    -6     

@stephentoub stephentoub reopened this Jun 26, 2020
@stephentoub stephentoub requested a review from mavasani June 28, 2020 00:16
@stephentoub stephentoub merged commit 3630050 into dotnet:master Jun 28, 2020
@stephentoub
Copy link
Member Author

Thanks, @mavasani.

@stephentoub stephentoub deleted the 1805nullable branch June 28, 2020 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants