Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-804.cs
1 using System;
2
3 interface IA
4 {
5         int Foo { get; }
6 }
7
8 interface IB_1 : IA
9 {
10         new string Foo { get; }
11 }
12
13 interface IB_2 : IA
14 {
15         new char Foo { get; }
16 }
17
18 interface IC : IB_2, IB_1
19 {
20         new byte Foo { get; }
21 }
22
23 class A : IA
24 {
25         public int Foo { get { return 3; } }
26 }
27
28 class B : A, IB_1
29 {
30         public new string Foo { get { return "1"; } }
31 }
32
33 class C : B, IC
34 {
35         char IB_2.Foo { get { return 'a'; } }
36         
37         public new byte Foo { get { return 2; } }
38         
39         public static void Main ()
40         {
41                 new C ();
42         }
43 }