[mini] Fix test compiling when running !MOBILE
[mono.git] / mcs / tests / test-815.cs
1 using System.Runtime.CompilerServices;
2
3 interface IS
4 {
5         [IndexerName ("Hello")]
6         int this[int index] { get; }
7 }
8
9 class D : IS
10 {
11         [IndexerName ("DUUU")]
12         public int this[int index] {
13                 get {
14                         return 1;
15                 }
16         }
17 }
18
19 static class X
20 {
21         public static int Main ()
22         {
23                 IS a = new D ();
24                 int r = a[1];
25
26                 D d = new D ();
27                 r = d[2];
28
29                 return 0;
30         }
31 }
32