2 // This test is for bug 57303
4 // Access via a base-instance to a protected method is allowed if we are a nested class
9 protected virtual int SomeProperty {
13 protected virtual int M ()
18 private class FooPrivate : Foo {
21 internal FooPrivate(Foo f) {
25 protected override int SomeProperty {
26 get { return this._realFoo.SomeProperty + _realFoo.M ();
31 public static void Main () { }