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

SA1000 conflict with new operator C# 9.0 #3355

Closed
fsomm opened this issue Jun 18, 2021 · 1 comment
Closed

SA1000 conflict with new operator C# 9.0 #3355

fsomm opened this issue Jun 18, 2021 · 1 comment

Comments

@fsomm
Copy link

fsomm commented Jun 18, 2021

There is a conflict using the new operator in C# 9.0 with the rule SA1000.
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/new-operator#constructor-invocation

e.g.

image

Unfortunately this rule is not only related to the new operator but to more keywords.
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1000.md

Deactivating this also affects other keywords.

@sharwell
Copy link
Member

Duplicate of #3214

@sharwell sharwell marked this as a duplicate of #3214 Jun 18, 2021
@sharwell sharwell closed this as not planned Won't fix, can't repro, duplicate, stale Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants