New test.
authorMarek Safar <marek.safar@gmail.com>
Wed, 29 Sep 2010 07:40:40 +0000 (08:40 +0100)
committerMarek Safar <marek.safar@gmail.com>
Wed, 29 Sep 2010 08:12:52 +0000 (09:12 +0100)
mcs/tests/dtest-031.cs [new file with mode: 0644]

diff --git a/mcs/tests/dtest-031.cs b/mcs/tests/dtest-031.cs
new file mode 100644 (file)
index 0000000..afce420
--- /dev/null
@@ -0,0 +1,26 @@
+using System;
+
+public class A<T>
+{
+       public U CustomDelegate<U>(out U u)
+       {
+               u = default(U);
+               return default(U);
+       }
+}
+
+public class Test
+{
+       public static int Main()
+       {
+               Foo<int> ();
+               return 0;
+       }
+       
+       static void Foo<Z> ()
+       {
+               dynamic a = new A<Z>();
+               Z z;
+               a.CustomDelegate(out z);
+       }
+}
\ No newline at end of file