add test to confirm behavior of Control.SetVisibleCore, and remove some redundant...
[mcs.git] / tests / test-partial-01.cs
blob66bb94728c4cc13f39e08e94f65a022501345a17
1 // Compiler options: -langversion:default
3 namespace Foo
5 public class Hello
7 public static int World = 8;
11 namespace Bar
13 public class Hello
15 public static int World = 9;
19 namespace X
21 using Foo;
23 public partial class Test
25 public static int FooWorld ()
27 return Hello.World;
32 namespace X
34 using Bar;
36 public partial class Test
38 public static int BarWorld ()
40 return Hello.World;
45 class Y
47 static int Main ()
49 if (X.Test.FooWorld () != 8)
50 return 1;
51 if (X.Test.BarWorld () != 9)
52 return 2;
53 return 0;