2010-05-19 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-33.cs
blob0c28ce2795b1e79f5008925a1b03180b66bed93f
1 using System;
3 namespace FirstOuter
5 namespace FirstInner
7 public class First
9 public string MyIdentity {
10 get {
11 return this.GetType().FullName;
17 public class Second : FirstInner.First {}
19 namespace SecondInner
21 public class Third : FirstOuter.FirstInner.First {}
24 namespace FirstInner // purposefully again
26 public class Fourth : First {} // must understand First in the nom qualified form
30 public class Fifth : FirstOuter.FirstInner.First {}
32 class Application
34 static int Main(string[] args)
36 FirstOuter.FirstInner.First V1 = new FirstOuter.FirstInner.First();
37 FirstOuter.Second V2 = new FirstOuter.Second();
38 FirstOuter.SecondInner.Third V3 = new FirstOuter.SecondInner.Third();
39 FirstOuter.FirstInner.Fourth V4 = new FirstOuter.FirstInner.Fourth();
40 Fifth V5 = new Fifth();
42 Console.WriteLine("V1 is " + V1.MyIdentity);
43 Console.WriteLine("V2 is " + V2.MyIdentity);
44 Console.WriteLine("V3 is " + V3.MyIdentity);
45 Console.WriteLine("V4 is " + V4.MyIdentity);
46 Console.WriteLine("V5 is " + V5.MyIdentity);
48 return 0;