summaryrefslogtreecommitdiff
path: root/mcs/tests/test-659.cs
blob: 8b332998df1fc845626e3344b912139f0d77b00c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Runtime.CompilerServices;

interface Iface
{
	[IndexerName ("AA")]
	bool this [int i] { set; }
}

public class MySubClass : Iface
{
	public static int Main ()
	{
		MySubClass m = new MySubClass ();
		m [1] = true;

		Iface i = new MySubClass ();
		i [1] = true;
		return 0;
	}

	[IndexerName ("BB")]
	public bool this [int i] { set { } }
}