Merge pull request #1821 from iainx/replace-getline
[mono-project.git] / mcs / errors / cs0122-23.cs
blob0fd03a5738bc9c2676a22bce60b6c8fa393246f0
1 // CS0122: `C.this[int]' is inaccessible due to its protection level
2 // Line: 6
4 using System;
5 using System.Collections;
7 class C
9 protected string this [int i] { set {} }
12 public class D
14 void Foo ()
16 C c = new C ();
17 c [0] = null;