Updated with review feedback.
[mono.git] / mcs / tests / dtest-058.cs
1 using System;
2
3 class Test
4 {
5         int a;
6         int b;
7
8         Test (int i)
9         {
10                 a = 10;
11         }
12
13         static Test Foo (dynamic d)
14         {
15                 return new Test (d) {
16                         b = 20
17                 };
18         }
19
20         public static int Main ()
21         {
22                 var t = Foo (44);
23                 if (t.a != 10)
24                         return 1;
25                 if (t.b != 20)
26                         return 2;
27                 
28                 return 0;
29         }
30 }