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

test-730.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 502d23392419ff568e137aedb597e1d706a25fc4 (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
class Demo
{
	public void Test (object arg)
	{
	}

	static int Test (int i)
	{
		return i;
	}

	delegate int D (int t);

	int GetPhones ()
	{
		D d = Test;
		return d (55);
	}

	public static int Main ()
	{
		int r = new Demo ().GetPhones ();
		if (r != 55)
			return 1;

		return 0;
	}
}