remove NotWorking
[mcs.git] / tests / test-241.cs
blobc15b0efb86e1244534f383ef7433ee9b3373e59c
1 //
2 // This test is for bug 57303
3 //
4 // Access via a base-instance to a protected method is allowed if we are a nested class
5 //
6 using System;
8 public class Foo {
9 protected virtual int SomeProperty {
10 get { return 10; }
13 protected virtual int M ()
15 return 10;
18 private class FooPrivate : Foo {
19 Foo _realFoo;
21 internal FooPrivate(Foo f) {
22 _realFoo = f;
25 protected override int SomeProperty {
26 get { return this._realFoo.SomeProperty + _realFoo.M ();
31 public static void Main () { }