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

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

delegate void Foo ();

class X
{
	public void Hello<U> (U u)
	{ }

	public void Test<T> (T t)
	{
		T u = t;
		Hello (u);
		Foo foo = delegate {
			Hello (u);
		};
		foo ();
		Hello (u);
	}

	public static void Main ()
	{
		X x = new X ();
		x.Test (3);
	}
}