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:
authorMartin Baulig <martin@novell.com>2003-07-13 22:28:32 +0400
committerMartin Baulig <martin@novell.com>2003-07-13 22:28:32 +0400
commit8605df4bfbc5ffd550ff7f0ff0780b5679f4dfe7 (patch)
tree8bbb9c7ab8ae6503e3ffd896ab7cd1db1b52a69e /mcs/tests/test-201.cs
parent9fbb1483e34d130c6e8219bb6b15626751e7a1bd (diff)
2003-07-13 Martin Baulig <martin@ximian.com>
* test-202.cs: Added test for bug #41975. 2003-07-13 Martin Baulig <martin@ximian.com> * test-201.cs: Added test for bug #35631. 2003-07-12 Martin Baulig <martin@ximian.com> * test-200.cs: Added test for bug #45854. svn path=/trunk/mcs/; revision=16165
Diffstat (limited to 'mcs/tests/test-201.cs')
-rw-r--r--mcs/tests/test-201.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/mcs/tests/test-201.cs b/mcs/tests/test-201.cs
new file mode 100644
index 00000000000..f9fa755de08
--- /dev/null
+++ b/mcs/tests/test-201.cs
@@ -0,0 +1,37 @@
+public class Parent
+{
+ public Parent () { }
+ private Collide Collide;
+}
+
+public class Child : Parent
+{
+ public class Nested
+ {
+ public readonly Collide Test;
+
+ public Nested ()
+ {
+ Test = Collide.Die;
+ }
+ }
+}
+
+public class Collide
+{
+ public Collide (int a)
+ {
+ this.A = a;
+ }
+
+ public readonly int A;
+ public static readonly Collide Die = new Collide (5);
+
+ public static int Main ()
+ {
+ Child.Nested nested = new Child.Nested ();
+ if (nested.Test.A != 5)
+ return 1;
+ return 0;
+ }
+}