Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / tests / test-24.cs
1 //
2 // Properties intermixed in assignments
3 //
4
5 using System;
6
7 class X {
8
9         static string v;
10
11         static string S {
12                 get {
13                         return v;
14                 }
15                 set {
16                         v = value;
17                 }
18         }
19
20         static string x, b;
21         
22         public static int Main ()
23         {
24
25                 x = S = b = "hlo";
26                 if (x != "hlo")
27                         return 1;
28                 if (S != "hlo")
29                         return 2;
30                 if (b != "hlo")
31                         return 3;
32                 return 0;
33         }
34 }
35