2004-05-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / tests / test-55.cs
index 6058ee2a1ba2c1f6b1106cf011e7aa929dc2a771..4b47a4da201bffa6aad5fd19dc17c04b7c6788be 100755 (executable)
@@ -1,5 +1,6 @@
 using c = System.Console;
 using s = System;
+using System2 = System;
 
 namespace A {
        namespace B {
@@ -23,11 +24,25 @@ namespace X {
        }
 }
 
+namespace Foo {
+
+  // Trick: this class is called System.  but we are going to use the using alias to
+  // reference the real system.
+  class System {
+       static void X() {
+         System2.Console.WriteLine("FOO");
+       }
+  }
+}
+
 class App {
        public static int Main () {
                A.B.C.Hola ();
                X.Y.Z.W.Ahoj ();
 
+               // Array declaration
+               System2.Net.IPAddress[] addresses2;
+
                return 0;
        }
 }