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

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

public delegate void Foo ();

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

	public void Test (int t)
	{
		for (long l = 0; l < t; l++) {
			for (long m = 0; m < l; m++) {
				for (int u = 0; u < t; u++) {
					Foo foo = delegate {
						Hello (u);
						Hello (l);
						Hello (m);
					};
					foo ();
				}
			}
		}
	}
}

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