-
Notifications
You must be signed in to change notification settings - Fork 473
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 a few bugs in CA1859. #6709
Conversation
I obj = new Derived(); | ||
obj.M(); |
There was a problem hiding this comment.
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 Report
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 |
src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Performance/UseConcreteTypeAnalyzer.cs
Outdated
Show resolved
Hide resolved
src/NetAnalyzers/UnitTests/Microsoft.NetCore.Analyzers/Performance/UseConcreteTypeTests.cs
Show resolved
Hide resolved
There was a problem hiding this 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
Fixes #6659
Fixed #6565
Fixes #6687
Fixes #6704