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