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

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

public delegate void Foo ();

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

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

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