CA1859 improperly handles explicit interface implementations on a parent class #6704
Labels
Area-Microsoft.CodeAnalysis.NetAnalyzers
Bug
The product is not behaving according to its current intended design
False_Positive
A diagnostic is reported for non-problematic case
Milestone
Analyzer
Diagnostic ID: CA1859:
Use concrete types when possible for improved performance
Analyzer source
SDK: Built-in CA analyzers in .NET 8 Preview 5 SDK
Version: 8.0.100-preview.5.23303.2
Describe the bug
#6416 described a false positive when a type explicitly implemented the interface method being invoked.
This issue is about when a parent class explicitly implements the interface method.
Steps To Reproduce
Expected behavior
CA1859 should not be triggered as
M()
is only explicitly implemented.Actual behavior
CA1859 is triggered.
Additional context
The text was updated successfully, but these errors were encountered: