Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / tests / dtest-042.cs
1 class A
2 {
3         protected virtual object Prop { get { return null; } set { } }
4 }
5
6 class B : A
7 {
8         public void Foo ()
9         {
10         }
11
12         protected override dynamic Prop { get { return new B (); } }
13 }
14
15 class Program : B
16 {
17         void Test ()
18         {
19                 base.Prop.Foo ();
20         }
21
22         public static void Main ()
23         {
24                 new Program ().Test ();
25         }
26 }