summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0272-2.cs
blob: 7221f71ea65d158c9ee6eddd6722c4c650b4be61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS0272: The property or indexer `C.this[string]' cannot be used in this context because the set accessor is inaccessible
// Line: 13

class C
{
	public int this [string i] { private set { } get { return 1; } }
}

public class Test
{
	void Foo ()
	{	C c = new C ();
		c [""] = 9;
	}
}