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

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

public delegate void Foo ();

public class World
{
	public void Hello (long a)
	{ }

	public void Test (int t)
	{
		Hello (t);
		int u = 2 * t;
		Foo foo = delegate {
			Hello (u);
		};
		foo ();
	}
}

class X
{
	static void Main ()
	{
		World world = new World ();
		world.Test (5);
	}
}