[sdks] Fix README.md
[mono-project.git] / mcs / tests / test-804.cs
blob20483e4e7b71b7477308ed518e6c2d5358b79926
1 using System;
3 interface IA
5 int Foo { get; }
8 interface IB_1 : IA
10 new string Foo { get; }
13 interface IB_2 : IA
15 new char Foo { get; }
18 interface IC : IB_2, IB_1
20 new byte Foo { get; }
23 class A : IA
25 public int Foo { get { return 3; } }
28 class B : A, IB_1
30 public new string Foo { get { return "1"; } }
33 class C : B, IC
35 char IB_2.Foo { get { return 'a'; } }
37 public new byte Foo { get { return 2; } }
39 public static void Main ()
41 new C ();