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

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

class A
{
	public delegate int D ();
}

class B : A
{
	new delegate void D ();
}

class C
{
	static int Foo ()
	{
		return 1;
	}
	
	public static int Main ()
	{
		A.D d = new B.D (Foo);
		if (d () != 1)
			return 1;
		
		return 0;
	}
}