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

37 lines
378 B
C#

using System;
public interface A
{
void Foo ();
}
public interface B : A
{ }
public abstract class X : A
{
public abstract void Foo ();
}
public abstract class Y : X, B
{ }
public class Z : Y
{
public override void Foo ()
{
Console.WriteLine ("Hello World!");
}
}
class Test
{
public static int Main ()
{
Z z = new Z ();
A a = z;
a.Foo ();
return 0;
}
}