2005-06-13 Miguel de Icaza <miguel@novell.com>
[mono.git] / mcs / tests / 2test-10.cs
1 // Compiler options: -langversion:default
2
3 namespace Foo
4 {
5         public class Hello
6         {
7                 public static int World = 8;
8         }
9 }
10
11 namespace Bar
12 {
13         public class Hello
14         {
15                 public static int World = 9;
16         }
17 }
18
19 namespace X
20 {
21         using Foo;
22
23         public partial class Test
24         {
25                 public static int FooWorld ()
26                 {
27                         return Hello.World;
28                 }
29         }
30 }
31
32 namespace X
33 {
34         using Bar;
35
36         public partial class Test
37         {
38                 public static int BarWorld ()
39                 {
40                         return Hello.World;
41                 }
42         }
43 }
44
45 class Y
46 {
47         static int Main ()
48         {
49                 if (X.Test.FooWorld () != 8)
50                         return 1;
51                 if (X.Test.BarWorld () != 9)
52                         return 2;
53                 return 0;
54         }
55 }