[mcs] Allow properties and indexers of by-ref values to be set without setter
[mono.git] / mcs / errors / cs1540-3.cs
1 // CS1540: Cannot access protected member `A.n' via a qualifier of type `B'. The qualifier must be of type `C' or derived from it
2 // Line: 19
3
4 class A
5 {
6         protected int n;
7 }
8  
9 class B : A
10 {
11 }
12  
13 class C : A
14 {
15         static B b = new B ();
16  
17         static void Main ()
18         {
19                 b.n = 1;
20         }
21 }