2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-partial-10.cs
blob16eb58abeeca0fac98085d30a1ec3cc21b5d7793
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 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;