(test-compiler-jit-real): Simplify sed expression.
[mono.git] / mcs / tests / test-241.cs
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;
7
8 public class Foo {
9   protected virtual int SomeProperty {
10     get { return 10; }
11   }
12
13   private class FooPrivate : Foo {
14     Foo _realFoo;
15
16     internal FooPrivate(Foo f) {
17       _realFoo = f;
18     }
19
20     protected override int SomeProperty {
21       get { return
22       this._realFoo.SomeProperty;
23       }
24     }
25   }
26
27   public static void Main () { }
28 }