[eglib] In AIX/generic POSIX, handle null addresses better (#17892)
[mono-project.git] / mcs / tests / test-partial-01.cs
blob9bf6da10d7c70af0616e4f1b43b54cc9540e0ad0
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 public static int Main ()
49 if (X.Test.FooWorld () != 8)
50 return 1;
51 if (X.Test.BarWorld () != 9)
52 return 2;
53 return 0;