summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-272.cs
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);
	}
}