Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

33 lines
345 B
C#

using System.Runtime.CompilerServices;
interface IS
{
[IndexerName ("Hello")]
int this[int index] { get; }
}
class D : IS
{
[IndexerName ("DUUU")]
public int this[int index] {
get {
return 1;
}
}
}
static class X
{
public static int Main ()
{
IS a = new D ();
int r = a[1];
D d = new D ();
r = d[2];
return 0;
}
}