diff options
author | Ravi Pratap M <ravi@mono-cvs.ximian.com> | 2001-11-01 09:35:40 +0300 |
---|---|---|
committer | Ravi Pratap M <ravi@mono-cvs.ximian.com> | 2001-11-01 09:35:40 +0300 |
commit | 07c58bb6a00c77a45f8df07f74f714764487ac39 (patch) | |
tree | 131009b755a3816cd144cd7d5e56d25f2e2dec76 /mcs/tests/test-33.cs | |
parent | 538d6bfac5b5d37cc3e24ad5bdf724b9c372edb5 (diff) |
Add.
svn path=/trunk/mcs/; revision=1238
Diffstat (limited to 'mcs/tests/test-33.cs')
-rw-r--r-- | mcs/tests/test-33.cs | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/mcs/tests/test-33.cs b/mcs/tests/test-33.cs new file mode 100644 index 00000000000..3e908b2ef35 --- /dev/null +++ b/mcs/tests/test-33.cs @@ -0,0 +1,51 @@ +using System;
+
+namespace FirstOuter
+{
+ namespace FirstInner
+ {
+ public class First
+ {
+ public string MyIdentity {
+ get {
+ return this.GetType().FullName;
+ }
+ }
+ }
+ }
+
+ public class Second : FirstInner.First {}
+
+ namespace SecondInner
+ {
+ public class Third : FirstOuter.FirstInner.First {}
+ }
+
+ namespace FirstInner // purposefully again
+ {
+ public class Fourth : First {} // must understand First in the nom qualified form
+ }
+}
+
+public class Fifth : FirstOuter.FirstInner.First {}
+
+class Application
+{
+ static int Main(string[] args)
+ {
+ FirstOuter.FirstInner.First V1 = new FirstOuter.FirstInner.First();
+ FirstOuter.Second V2 = new FirstOuter.Second();
+ FirstOuter.SecondInner.Third V3 = new FirstOuter.SecondInner.Third();
+ FirstOuter.FirstInner.Fourth V4 = new FirstOuter.FirstInner.Fourth();
+ Fifth V5 = new Fifth();
+
+ Console.WriteLine("V1 is " + V1.MyIdentity);
+ Console.WriteLine("V2 is " + V2.MyIdentity);
+ Console.WriteLine("V3 is " + V3.MyIdentity);
+ Console.WriteLine("V4 is " + V4.MyIdentity);
+ Console.WriteLine("V5 is " + V5.MyIdentity);
+
+ return 0;
+ }
+}
+
|