S3257 incorrectly recommends removing explicit type for multidimensional array

csharp

(Paul Hickman) #1

In the following example, the explicit array type is needed to compile the statement but rule S3257 recommends removing it:

            var x = new int[][] {
                new [] { 1 } 
            };

(Valeri Hristov) #2

Hi Paul, thanks for the feedback. Ticket created: https://github.com/SonarSource/sonar-csharp/issues/1840