blob: 855be8181745ff6fa28c9be6f7f20ee8ab92b446 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// CS0154: 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];
}
}
|