Merge pull request #4928 from kumpera/ptr_to_struct_intrinsic
[mono.git] / mcs / tests / gtest-272.cs
1 using System;
2
3 public delegate void Handler<T> (T t);
4
5 public static class X
6 {
7         public static void Foo<T> (Handler<T> handler) {
8                 AsyncCallback d = delegate (IAsyncResult ar) {
9                         Response<T> (handler);
10                 };
11         }
12
13         static void Response<T> (Handler<T> handler)
14         { }
15
16         static void Test<T> (T t)
17         { }
18
19         public static void Main ()
20         {
21                 Foo<long> (Test);
22         }
23