Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-623.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9021a6e2c7562a0c52fe15ee260bf4dc1e93b184 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
// 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 ();
	}
}