Skip to content

Fix a few bugs in CA1859.#6709

Merged
mavasani merged 1 commit intodotnet:mainfrom
geeknoid:1859
Jun 29, 2023
Merged

Fix a few bugs in CA1859.#6709
mavasani merged 1 commit intodotnet:mainfrom
geeknoid:1859

Conversation

@geeknoid
Copy link
Member

@geeknoid geeknoid commented Jun 23, 2023

Fixes #6659
Fixed #6565
Fixes #6687
Fixes #6704

@geeknoid geeknoid requested a review from a team as a code owner June 23, 2023 01:17
Comment on lines +49 to +73
I obj = new Derived();
obj.M();
Copy link

@sharwell sharwell Jun 23, 2023

Choose a reason for hiding this comment

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

💭 It seems like this would still work:

Derived obj = new Derived();
((I)obj).M();

Not sure it's better though.

@codecov
Copy link

codecov bot commented Jun 23, 2023

Codecov Report

Merging #6709 (aa190d8) into main (b4dc141) will decrease coverage by 0.02%.
The diff coverage is 93.61%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6709      +/-   ##
==========================================
- Coverage   96.38%   96.36%   -0.02%     
==========================================
  Files        1386     1395       +9     
  Lines      323491   325074    +1583     
  Branches    10567    10676     +109     
==========================================
+ Hits       311782   313260    +1478     
- Misses       9181     9247      +66     
- Partials     2528     2567      +39     

Copy link

@mavasani mavasani left a comment

Choose a reason for hiding this comment

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

LGTM, just some minor suggestions

@mavasani mavasani merged commit 21a3b16 into dotnet:main Jun 29, 2023
jnyrup added a commit to jnyrup/fluentassertions that referenced this pull request Dec 22, 2025
jnyrup added a commit to fluentassertions/fluentassertions that referenced this pull request Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants