Author: martin
Date: 2006-06-16 13:33:29 -0400 (Fri, 16 Jun 2006)
New Revision: 61809
Added:
trunk/mcs/tests/gtest-272.cs
Log:
New test.
Added: trunk/mcs/tests/gtest-272.cs
===================================================================
--- trunk/mcs/tests/gtest-272.cs 2006-06-16 17:14:16 UTC (rev 61808)
+++ trunk/mcs/tests/gtest-272.cs 2006-06-16 17:33:29 UTC (rev 61809)
@@ -0,0 +1,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)
+ { }
+
+ static void Main ()
+ {
+ Foo<long> (Test);
+ }
+}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches