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

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

delegate void Foo<S> (S s);

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

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

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