[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / dtest-058.cs
blob23dedf09af204e14e650deee37a9a9045b9e4a78
1 using System;
3 class Test
5 int a;
6 int b;
8 Test (int i)
10 a = 10;
13 static Test Foo (dynamic d)
15 return new Test (d) {
16 b = 20
20 public static int Main ()
22 var t = Foo (44);
23 if (t.a != 10)
24 return 1;
25 if (t.b != 20)
26 return 2;
28 return 0;