Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-845.cs
1 interface IA
2 {
3 }
4
5 interface IB
6 {
7         int Foo ();
8         int Foo2 ();
9 }
10
11 interface IC : IA, IB
12 {
13 }
14
15 class C1 : IA, IB
16 {
17         public int Foo ()
18         {
19                 return 5;
20         }
21         
22         public int Foo2 ()
23         {
24                 return 55;
25         }
26 }
27
28 class C2 : C1, IC
29 {
30         public new int Foo ()
31         {
32                 return 2;
33         }
34         
35         public int Foo2 ()
36         {
37                 return 2;
38         }
39
40         public static int Main ()
41         {
42                 IC ic = new C2 ();
43                 if (ic.Foo () != 2)
44                         return 1;
45
46                 if (ic.Foo2 () != 2)
47                         return 2;
48                 
49                 return 0;
50         }
51 }