You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently SA1000 requires a space after the word new.
This new feature should not require spacing and should be added to the following excerpt. The new keyword is part of a generic type constraint. In this case there should be no space between the new keyword and the opening parenthesis.
C# 9.0 has the ability to not require type specification for constructors when the type is known.
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-9.0/target-typed-new
Currently SA1000 requires a space after the word new.
This new feature should not require spacing and should be added to the following excerpt.
The new keyword is part of a generic type constraint. In this case there should be no space between the new keyword and the opening parenthesis.
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1000.md#rule-description
Expected
Foo foo = new()
Actual
Foo foo = new ()
The text was updated successfully, but these errors were encountered: