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:
authorMiguel de Icaza <miguel@gnome.org>2001-10-15 04:03:43 +0400
committerMiguel de Icaza <miguel@gnome.org>2001-10-15 04:03:43 +0400
commitec894c7899782f8c37948250d4de97134f951b04 (patch)
tree2f88e80a8d87526acbb949bad8682b0f6fa8fb21 /mcs/tests/test-24.cs
parent1413d8129a29e7f7a491b7b727b84cbb94eb6f72 (diff)
2001-10-14 Miguel de Icaza <miguel@ximian.com>
* expression.cs: LocalTemporary: a new expression used to reference a temporary that has been created. * assign.cs: Handle PropertyAccess back here, so that we can provide the proper semantic access to properties. svn path=/trunk/mcs/; revision=1165
Diffstat (limited to 'mcs/tests/test-24.cs')
-rw-r--r--mcs/tests/test-24.cs35
1 files changed, 35 insertions, 0 deletions
diff --git a/mcs/tests/test-24.cs b/mcs/tests/test-24.cs
new file mode 100644
index 00000000000..e69a844c93d
--- /dev/null
+++ b/mcs/tests/test-24.cs
@@ -0,0 +1,35 @@
+//
+// Properties intermixed in assignments
+//
+
+using System;
+
+class X {
+
+ static string v;
+
+ static string S {
+ get {
+ return v;
+ }
+ set {
+ v = value;
+ }
+ }
+
+ static string x, b;
+
+ static int Main ()
+ {
+
+ x = S = b = "hlo";
+ if (x != "hlo")
+ return 1;
+ if (S != "hlo")
+ return 2;
+ if (b != "hlo")
+ return 3;
+ return 0;
+ }
+}
+