Skip to content

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

@AArnott

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions