[build] Fix warning (#4177)
[mono-project.git] / mcs / tests / test-partial-10.cs
blobba8a5c32c46553a31475e0f17419218da362efe6
1 // Compiler options: -langversion:default
3 using System;
5 namespace Test2
7 public interface Base
8 { }
10 public partial class Foo : Base
12 public static int f = 10;
15 public partial class Foo : Base
17 public static int f2 = 9;
21 namespace Test3
23 public interface Base
24 { }
26 public partial struct Foo : Base
28 public static int f = 10;
31 public partial struct Foo : Base
33 public static int f2 = 9;
37 class X
39 public static int Main ()
41 if (Test2.Foo.f != 10)
42 return 1;
44 if (Test2.Foo.f2 != 9)
45 return 1;
47 if (Test3.Foo.f != 10)
48 return 1;
50 if (Test3.Foo.f2 != 9)
51 return 1;
53 Console.WriteLine ("OK");
54 return 0;