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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2006-06-16 21:33:29 +0400
committerMartin Baulig <martin@novell.com>2006-06-16 21:33:29 +0400
commit2137aba8553064139b89288123f1200bd624cbbc (patch)
treec35726cf392025919480300388f95568e50251ca /mcs/tests/gtest-272.cs
parent677bdd5e023940ccfde2123678dfea685c91139f (diff)
New test.
svn path=/trunk/mcs/; revision=61809
Diffstat (limited to 'mcs/tests/gtest-272.cs')
-rw-r--r--mcs/tests/gtest-272.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/tests/gtest-272.cs b/mcs/tests/gtest-272.cs
new file mode 100644
index 00000000000..318de1af3bd
--- /dev/null
+++ b/mcs/tests/gtest-272.cs
@@ -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);
+ }
+}