[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs1540-11.cs
blob1443179bd858aebde560ba8bb46a3453d1c65753
1 // CS1540: Cannot access protected member `A.this[int]' via a qualifier of type `B'. The qualifier must be of type `C' or derived from it
2 // Line: 14
4 class A {
5 protected int this [int i] { get { return i; } }
8 class B : A { }
10 class C : A {
11 static int Main ()
13 B b = new B ();
14 return b [0];