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

24 lines
265 B
C#

//
// fixed
//
interface I {
void a ();
}
abstract class X : I {
public abstract void a ();
}
class Y : X {
override public void a () {
System.Console.WriteLine ("Hello!");
return;
}
public static void Main () {
Y y = new Y ();
((I) y ).a ();
}
}