[eglib] In AIX/generic POSIX, handle null addresses better (#17892)
[mono-project.git] / mcs / tests / test-815.cs
blob3dbc1f8077c9dfb02ccde5f76bfd195835c9b16b
1 using System.Runtime.CompilerServices;
3 interface IS
5 [IndexerName ("Hello")]
6 int this[int index] { get; }
9 class D : IS
11 [IndexerName ("DUUU")]
12 public int this[int index] {
13 get {
14 return 1;
19 static class X
21 public static int Main ()
23 IS a = new D ();
24 int r = a[1];
26 D d = new D ();
27 r = d[2];
29 return 0;