-
Notifications
You must be signed in to change notification settings - Fork 510
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
When using the new collection initializer [] no SA1010 should be raised. #3850
Comments
I am unable to reproduce this using the latest beta. Looks like you just need to upgrade. |
Duplicate of #3687 |
I have just upgraded to 1.2.0-beta.556 and see this is fixed. With shift to .net8 picking up folks may be seeing this more but not be getting the latest package because of the beta tag. |
Thanks, we upgraded to the newest package and now everything works! |
I also stumbled upon this issue... Why there hasn't been a new release in 5 years and we have to use beta versions? |
@sharwell can you answer @twojnarowski's question? |
When having the following code:
List<string> list = [];
A warning "SA1010 Opening square brackets should not be preceded by a space" will be triggered. This should not happen when using the new collection initializer [].
The text was updated successfully, but these errors were encountered: