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

test-73.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 30bc6629d20063cc7f32aa75a5c1e3ee5e8ba753 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// This test is used to test that we do not use the .override
// command on abstract method implementations.
//

public abstract class Abstract {
	public abstract int A ();
}

public class Concrete : Abstract {
	public override int A () {
		return 1;
	}
}

class Test {

	public static int Main ()
	{
		Concrete c = new Concrete ();

		if (c.A () != 1)
			return 1;

		return 0;
	}
}