a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
26 lines
305 B
C#
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 ();
|
|
}
|
|
} |