Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SA1010 should not fire for collection expressions #3815

Closed
RenderMichael opened this issue Mar 9, 2024 · 2 comments
Closed

SA1010 should not fire for collection expressions #3815

RenderMichael opened this issue Mar 9, 2024 · 2 comments

Comments

@RenderMichael
Copy link

Description

The following code fires SA1010OpeningSquareBracketsMustBeSpacedCorrectly

string[] actual = ["one", "two", "three"];

Expected Behavior

The diagnostic should not fire.

Actual Behavior

The analyzer fires the diagnostic

@manfred-brands
Copy link

Duplicate of #3503

@RenderMichael This was fixed in version 1.2.0-beta.556.

@RenderMichael
Copy link
Author

Ah my mistake, goes to show, always try on the latest pre-release. Thanks.

@RenderMichael RenderMichael closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants