Adjust wording for ERR_ExpressionVariableInConstructorOrFieldInitializer error #13528
Labels
Area-Compilers
Language-C#
New Language Feature - Out Variable Declaration
Out Variable Declaration
New Language Feature - Pattern Matching
Pattern Matching
Milestone
From @cston:
Consider separating cases with comma for consistency with other errors. And remove auto-implemented if not necessary. Perhaps: ... not allowed within constructors, field initializers, or property initializers.
From @gafter:
Also, I believe the first "or" should be "and" (they are both forbidden), so I suggest
This is long-winded enough that you could consider specializing it.
The text was updated successfully, but these errors were encountered: