Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Maurer <benm@mono-cvs.ximian.com>2004-07-10 23:32:47 +0400
committerBen Maurer <benm@mono-cvs.ximian.com>2004-07-10 23:32:47 +0400
commitb3913f7b77cb4fec1d96fc75fcb4a7c70bc3ed59 (patch)
tree18ef8cb4649dde9286bc96f1a3d0c88e67980deb /mcs/tests/test-278.cs
parent27dcf5bcdd05955556c1bc3519fc27b8d9ec3431 (diff)
new test
svn path=/trunk/mcs/; revision=30987
Diffstat (limited to 'mcs/tests/test-278.cs')
-rw-r--r--mcs/tests/test-278.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/tests/test-278.cs b/mcs/tests/test-278.cs
new file mode 100644
index 00000000000..bda2227f2d9
--- /dev/null
+++ b/mcs/tests/test-278.cs
@@ -0,0 +1,17 @@
+using System;
+
+struct Rect {
+ int x;
+
+ public int X { get { return x; } set { x = value; } }
+}
+
+class X {
+ static int Main ()
+ {
+ Rect rect = new Rect ();
+ rect.X += 20;
+ Console.WriteLine ("Shoudl be 20: " + rect.X);
+ return rect.X == 20 ? 0 : 1;
+ }
+} \ No newline at end of file