2010-05-31 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-773.cs
blob0c97c021c13ebaf0c5f63b7d981bf9c562cbfb19
1 using System;
2 using System.Runtime.CompilerServices;
4 interface IFoo
6 [IndexerName ("Bar")]
7 int this[int i] { get; }
10 class Foo : IFoo
12 public int this[int i] { get { return 42; } }
15 abstract class Bar
17 [IndexerName ("Baz")]
18 public abstract int this[int i] { get; }
21 class Babar : Bar
23 public override int this[int i] { get { return 42; } }
26 class Test
28 static int Main ()
30 if (typeof (Foo).GetProperty ("Bar") != null)
31 return 1;
33 if (typeof (Babar).GetProperty ("Baz") == null)
34 return 2;
36 return 0;