7 lines
154 B
C#
Raw Normal View History

// CS8054: `S.P': Structs without explicit constructors cannot contain members with initializers
// Line: 6
struct S
{
public decimal P { get; } = -3;
}