Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

26 lines
305 B
C#

class A
{
protected virtual object Prop { get { return null; } set { } }
}
class B : A
{
public void Foo ()
{
}
protected override dynamic Prop { get { return new B (); } }
}
class Program : B
{
void Test ()
{
base.Prop.Foo ();
}
public static void Main ()
{
new Program ().Test ();
}
}