CA1859 not firing in System.Net.Mail source code #7078
Labels
Area-Microsoft.CodeAnalysis.NetAnalyzers
False_Negative
No diagnostic is reported for a problematic case
Milestone
Analyzer
Diagnostic ID: CA1859:
Use concrete types when possible for improved performance
Analyzer source
NuGet Package: Microsoft.CodeAnalysis.NetAnalyzers
Version: 7.0.0-preview1.22559.1
Describe the bug
See dotnet/runtime#95601 (comment)
Steps To Reproduce
Expected behavior
Build fails (Treat warnings as errors is true) because of CA1859 on the following line
https://github.com/dotnet/runtime/blob/d7375b05ff2588884a4d2f4374d41cdbb9f07d27/src/libraries/System.Net.Mail/src/System/Net/Mail/MailAddressCollection.cs#L42
Actual behavior
CA1859 is not detected, build passes.
CC @geeknoid
The text was updated successfully, but these errors were encountered: