Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-278.cs
1 using System;
2
3 struct Rect {
4         int x;
5
6         public int X { get { return x; } set { x = value; } }
7 }
8
9 class X {
10         public static int Main ()
11         {
12                 Rect rect = new Rect ();
13                 rect.X += 20;
14                 Console.WriteLine ("Should be 20: " + rect.X);
15                 return rect.X == 20 ? 0 : 1;
16         }
17 }