Closed vtcifer closed 2 years ago
See details:
https://github.com/dotnet/roslyn/pull/58581 https://github.com/dotnet/csharplang/issues/5552
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-10.0/parameterless-struct-constructors#definite-assignment https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/struct#parameterless-constructors-and-field-initializers
Simple fix is to define a parameterless constructor for the struct.
See details:
https://github.com/dotnet/roslyn/pull/58581 https://github.com/dotnet/csharplang/issues/5552
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-10.0/parameterless-struct-constructors#definite-assignment https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/struct#parameterless-constructors-and-field-initializers
Simple fix is to define a parameterless constructor for the struct.