Merge branch 'atsushi'
[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\r
2 // Line: 13\r
3 \r
4 class Test\r
5 {\r
6         public int this[bool b] { set {} }\r
7 }\r
8 \r
9 class C\r
10 {\r
11         public static void Main ()\r
12         {\r
13                 int i = new Test()[false];\r
14         }\r
15 }