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

test-785.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d29a1c4b7315c583db860175316a466be8f7c95d (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Compiler options: -warnaserror

abstract class Base
{
	public abstract int Prop
	{
		get;
		set;
	}

	public abstract int this[int i]
	{
		get;
	}

	public abstract void TestVoid ();
	public abstract void TestInt (int i);
}

abstract class DeriveVTable : Base
{
	public override int Prop
	{
		get { return 1; }
	}

	public override int this[int i]
	{
		get { return 1; }
	}

	public override void TestVoid ()
	{
	}

	public override void TestInt (int i)
	{
	}
}

abstract class NewVTable : DeriveVTable
{
	public new abstract int Prop
	{
		get;
	}

	public new int this[int i]
	{
		get { return 2; }
	}

	public new void TestVoid ()
	{
	}

	public new void TestInt (int i)
	{
	}

	public void Overload ()
	{
	}

	public void Overload (int i)
	{
	}

	public static void Main ()
	{
	}
}