You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am going to close this as an existing issue has been identified in the appropriate repo, but feel free to re-open if you believe this was closed mistakenly.
Description
Using 9.0.100-rc.2.24474.11 SDK
I'm getting incorrect CA2021 warning on valid code. See repro steps below.
Reproduction Steps
Expected behavior
No warning
Actual behavior
Program.cs(3, 13): [CA2021] This call will always result in an empty sequence because type 'BaseClass' is incompatible with type 'Implementation' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2021)
Regression?
No response
Known Workarounds
Add NoWarn for CA2021 to csproj, but this is not optimal in case the issue actually exists.
Configuration
No response
Other information
9.0.100-rc.2.24474.11 SDK
Running in Rider 2024.2.7
Windows 10 x64
The text was updated successfully, but these errors were encountered: