linux-packaging-mono/mcs/tests/gtest-autoproperty-10.cs
Jo Shields 181b81b4a4 Imported Upstream version 3.12.0
Former-commit-id: cf92446697332992ec36726e78eb8703e1f259d7
2015-01-13 10:44:36 +00:00

17 lines
201 B
C#

// Compiler options: -langversion:experimental
struct S
{
public decimal P { get; } = -3;
}
class X
{
public static int Main ()
{
var s = new S ();
if (s.P != -3)
return 1;
return 0;
}
}