Updated with review feedback.
[mono.git] / mcs / errors / cs0154-3.cs
1 // CS0154: The property or indexer `Test.this[bool]' cannot be used in this context because it lacks the `get' accessor
2 // Line: 13
3
4 class Test
5 {
6         public int this[bool b] { set {} }
7 }
8
9 class C
10 {
11         public static void Main ()
12         {
13                 int i = new Test()[false];
14         }
15 }