[Mono-bugs] [Bug 78741][Nor] Changed - [GMCS] Generic anon. delegates - runtime error.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jul 21 10:45:26 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by martin at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78741

--- shadow/78741	2006-07-21 10:37:24.000000000 -0400
+++ shadow/78741.tmp.12584	2006-07-21 10:45:26.000000000 -0400
@@ -140,6 +140,31 @@
 
 ------- Additional Comments From martin at ximian.com  2006-07-21 05:31 -------
 Error test; must report CS0307.
 
 ------- Additional Comments From martin at ximian.com  2006-07-21 10:37 -------
 There remains a miscompilation after fixing the syntax error.
+
+------- Additional Comments From martin at ximian.com  2006-07-21 10:45 -------
+Simpler test case:
+
+=====
+using System;
+
+public class Binders {
+        public delegate void Test ();
+
+        public static void Hello<U> (U u)
+        { }
+
+        public static Test Bind<T> (T t)
+        {
+                return delegate () {
+                        Hello (t);
+                };
+        }
+
+        static void Main ()
+        { }
+}
+=====
+


More information about the mono-bugs mailing list