linux-packaging-mono/mcs/tests/test-primary-ctor-01.cs
Jo Shields fe777c5c82 Imported Upstream version 3.8.0
Former-commit-id: 6a76a29bd07d86e57c6c8da45c65ed5447d38a61
2014-09-04 09:07:35 +01:00

22 lines
298 B
C#

class Simple(int arg)
{
int Property { get; } = arg;
public static int Main ()
{
var c = new Simple (4);
if (c.Property != 4)
return 1;
var s = new S (4.3m);
if (s.Property != 4.3m)
return 1;
return 0;
}
}
struct S(decimal arg)
{
internal decimal Property { get; } = arg;
}