Open
Description
openedon Apr 20, 2020
Analyzer package
Microsoft.CodeAnalysis.FxCopAnalyzers
Package Version
v3.0.0-beta3.final (latest pre-release)
Diagnostic ID
Example: CA1062
Repro steps
namespace CA1062Test
{
public static class Thing
{
public static void Fn(int[] items)
{
var l1 = items?.Length;
// This should fire a CA1062, but it does not.
var l2 = items.Length;
}
}
}
Expected behavior
CA1062 on line declaring l2
Actual behavior
No CA1062
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment