2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-55.cs
blob4b47a4da201bffa6aad5fd19dc17c04b7c6788be
1 using c = System.Console;
2 using s = System;
3 using System2 = System;
5 namespace A {
6 namespace B {
7 class C {
8 public static void Hola () {
9 c.WriteLine ("Hola!");
15 namespace X {
16 namespace Y {
17 namespace Z {
18 class W {
19 public static void Ahoj () {
20 s.Console.WriteLine ("Ahoj!");
27 namespace Foo {
29 // Trick: this class is called System. but we are going to use the using alias to
30 // reference the real system.
31 class System {
32 static void X() {
33 System2.Console.WriteLine("FOO");
38 class App {
39 public static int Main () {
40 A.B.C.Hola ();
41 X.Y.Z.W.Ahoj ();
43 // Array declaration
44 System2.Net.IPAddress[] addresses2;
46 return 0;