2015-01-13 10:44:36 +00:00
|
|
|
// Compiler options: -langversion:experimental
|
2014-08-13 10:39:27 +01:00
|
|
|
class Simple(int arg)
|
|
|
|
{
|
2014-09-04 09:07:35 +01:00
|
|
|
int Property { get; } = arg;
|
2014-08-13 10:39:27 +01:00
|
|
|
|
|
|
|
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)
|
|
|
|
{
|
2014-09-04 09:07:35 +01:00
|
|
|
internal decimal Property { get; } = arg;
|
2014-08-13 10:39:27 +01:00
|
|
|
}
|