Merge pull request #3622 from rolfbjarne/remove-stray-file
[mono.git] / mcs / errors / cs0122-23.cs
1 // CS0122: `C.this[int]' is inaccessible due to its protection level
2 // Line: 6
3
4 using System;
5 using System.Collections;
6
7 class C
8 {
9         protected string this [int i] { set {} }
10 }
11
12 public class D
13 {
14         void Foo ()
15         {
16                 C c = new C ();
17                 c [0] = null;
18         }
19 }