2006-12-05 Chris Toshok <toshok@ximian.com>
[mcs.git] / tests / test-278.cs
blobbda2227f2d99f7a5bd66df0d439c4d97f7c2a8ca
1 using System;
3 struct Rect {
4 int x;
6 public int X { get { return x; } set { x = value; } }
9 class X {
10 static int Main ()
12 Rect rect = new Rect ();
13 rect.X += 20;
14 Console.WriteLine ("Shoudl be 20: " + rect.X);
15 return rect.X == 20 ? 0 : 1;