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

gtest-272.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f1981026c9b5f5fbc3706b263af394b43d449911 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;

public delegate void Handler<T> (T t);

public static class X
{
        public static void Foo<T> (Handler<T> handler) {
                AsyncCallback d = delegate (IAsyncResult ar) {
                        Response<T> (handler);
                };
        }

        static void Response<T> (Handler<T> handler)
	{ }

	static void Test<T> (T t)
	{ }

	public static void Main ()
	{
		Foo<long> (Test);
	}
}