2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / tests / test-281.cs
1 namespace Foo
2 {
3         public class Hello
4         {
5                 public static int World = 8;
6         }
7 }
8
9 namespace Bar
10 {
11         public class Hello
12         {
13                 public static int World = 9;
14         }
15 }
16
17 namespace Test
18 {
19         using Foo;
20
21         public class Test1
22         {
23                 public static int World ()
24                 {
25                         return Hello.World;
26                 }
27         }
28 }
29
30 namespace Test
31 {
32         using Bar;
33
34         public class Test2
35         {
36                 public static int World ()
37                 {
38                         return Hello.World;
39                 }
40         }
41 }
42
43 class X
44 {
45         static int Main ()
46         {
47                 if (Test.Test1.World () != 8)
48                         return 1;
49                 if (Test.Test2.World () != 9)
50                         return 2;
51                 return 0;
52         }
53 }