Skip to content

SA1010 false positive when list syntax is used in a field initializer #3687

Description

@AArnott

The following line produces a SA1010 warning claiming that the open square bracket should not be preceded by a space:

    protected static readonly string[] DefaultMetadataPaths = [MetadataPath, WdkMetadataPath];

This is using 1.2.0.507.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions