Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-primary-ctor-01.cs
1 // Compiler options: -langversion:experimental
2 class Simple(int arg)
3 {
4         int Property { get; } = arg;
5
6         public static int Main ()
7         {
8                 var c = new Simple (4);
9                 if (c.Property != 4)
10                         return 1;
11
12                 var s = new S (4.3m);
13                 if (s.Property != 4.3m)
14                         return 1;
15
16                 return 0;
17         }
18 }
19
20 struct S(decimal arg)
21 {
22         internal decimal Property { get; } = arg;
23 }