We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Spec: https://github.com/dotnet/csharplang/blob/main/proposals/csharp-11.0/auto-default-structs.md Championed proposal: dotnet/csharplang#5737
{
-langversion
initobj
get
set
init
SemanticErrorTests.CS0843ERR_UnassignedThisAutoProperty
FlowDiagnosticTests.AutoPropInitialization4
StructConstructorTests.FieldInitializers_08
: this(...)
: this()
this = default;
/warn:5
record
default
struct
!!
#pragma warning restore
The text was updated successfully, but these errors were encountered:
RikkiGibson
cston
jcouv
Successfully merging a pull request may close this issue.
Spec: https://github.com/dotnet/csharplang/blob/main/proposals/csharp-11.0/auto-default-structs.md
Championed proposal: dotnet/csharplang#5737
{
in constructor?)Compiler
-langversion
initobj
?)get
only; withset
; withinit
SemanticErrorTests.CS0843ERR_UnassignedThisAutoProperty
,FlowDiagnosticTests.AutoPropInitialization4
StructConstructorTests.FieldInitializers_08
: this(...)
: this()
this = default;
this = default;
conditionallywhen assigning to backing field of semi-auto property (i.e. using a field initializer)moved to Test plan for "field keyword in properties" #57012when assigning to property of semi-auto property (i.e. in a constructor)moved to Test plan for "field keyword in properties" #57012/warn:5
record
default
assigned:struct
type with parameterless constructorstruct
type (no assignment?)!!
(which runs first?)#pragma warning restore
should not enable disabled diagnosticsProductivity
The text was updated successfully, but these errors were encountered: