Started poking at this scenario a bit and I observed what I think is a bug. SharpLab
public struct S
{
int x = 1;
int y;
// should be allowed
// perhaps `: this()` should be 'this = default;'
// then run field initializers
public S(int y) : this()
{
}
}
Tagging @cston
Originally posted by @RikkiGibson in dotnet/csharplang#5552 (comment)
Started poking at this scenario a bit and I observed what I think is a bug. SharpLab
Tagging @cston
Originally posted by @RikkiGibson in dotnet/csharplang#5552 (comment)