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

test-778.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 83a3d7308752986d8828da318238d2a3a6150b65 (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
using System;

public abstract class A
{
	public virtual int Test ()
	{
		throw new ApplicationException ();
	}
}

public class B : A
{
	public override int Test ()
	{
		Console.WriteLine ("B");
		return 1;
	}
	
	public void Test (object[] builders)
	{
	}

	public virtual void Test (object[] builders, string s)
	{
	}
}

public class C : B
{
	public override void Test (object[] builders, string s)
	{
	}
}

public class D : C
{
	public override int Test ()
	{
		return base.Test ();
	}
}

class T
{
	public static int Main ()
	{
		var v = new D ();
		if (v.Test () != 1)
			return 1;
		
		return 0;
	}
}