[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / test-773.cs
blob8b82e33110b05447f856142bfa4e5e9e4a165b25
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 public 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;