blob: 5b2eeaed8d5b7d595b28f855d1c20d4aeb9ac98b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Compiler options: -langversion:experimental
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;
}
|