Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0154-3.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 219853b3b84777a004239ea90268b68a4423b325 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// cs0154-3.cs: The property or indexer `Test.this[bool]' cannot be used in this context because it lacks the `get' accessor
// Line: 13

class Test
{
	public int this[bool b] { set {} }
}

class C
{
	public static void Main ()
	{
		int i = new Test()[false];
	}
}