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

CA2263: Fix wrong fix for notnull constraints and fix crash on unbound generic types #7247

Merged
merged 2 commits into from
Mar 16, 2024

Conversation

mpidash
Copy link
Contributor

@mpidash mpidash commented Mar 15, 2024

Fixes #7245 and fixes #7246.

mpidash added 2 commits March 15, 2024 21:38
This is necessary because even if notnull constraints are violated, the speculative bind succeeds.
This was due to a bug where the analyzer would continue even if only
unbound generic types were used in the typeof operator.
@mpidash mpidash requested a review from a team as a code owner March 15, 2024 20:53
Copy link

codecov bot commented Mar 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.47%. Comparing base (82f8a1f) to head (50c9eb9).

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #7247    +/-   ##
========================================
  Coverage   96.47%   96.47%            
========================================
  Files        1436     1436            
  Lines      342787   342881    +94     
  Branches    11289    11292     +3     
========================================
+ Hits       330697   330797   +100     
+ Misses       9236     9230     -6     
  Partials     2854     2854            

Copy link
Contributor

@buyaa-n buyaa-n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the prompt fix, looks good.

@buyaa-n buyaa-n merged commit c72c726 into dotnet:main Mar 16, 2024
14 checks passed
@mpidash mpidash deleted the issues-7245-7246 branch March 16, 2024 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants