[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / test-primary-ctor-01.cs
blob5b2eeaed8d5b7d595b28f855d1c20d4aeb9ac98b
1 // Compiler options: -langversion:experimental
2 class Simple(int arg)
4 int Property { get; } = arg;
6 public static int Main ()
8 var c = new Simple (4);
9 if (c.Property != 4)
10 return 1;
12 var s = new S (4.3m);
13 if (s.Property != 4.3m)
14 return 1;
16 return 0;
20 struct S(decimal arg)
22 internal decimal Property { get; } = arg;