[Mono-bugs] [Bug 79592][Wis] Changed - [GMCS] Compilation error with anon method returning a delegate

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Oct 6 05:49:59 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 vargaz at gmail.com.


--- shadow/79592	2006-10-05 23:09:49.000000000 -0400
+++ shadow/79592.tmp.26497	2006-10-06 05:49:59.000000000 -0400
@@ -1,23 +1,23 @@
 Bug#: 79592
-Product: Mono: Class Libraries
+Product: Mono: Compilers
 Version: unspecified
+OS: unknown
 OS Details: 
 Status: NEW   
+Severity: Unknown
 Priority: Wishlist
-Component: CORLIB
+Component: C#
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: hys545 at dreamwiz.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
-Summary: mono-svn-66324 don;t compile IronPython-7221
+Summary: [GMCS] Compilation error with anon method returning a delegate
 Please fill in this template when reporting a bug, unless you know what you
 are doing.
 Description of Problem:
 gmcs -t:library -r:../IronMath.dll -r:System.Drawing.dll
 -r:System.Design.dll -out:../IronPython.dll -recurse:IronPython/*.cs
@@ -50,6 +50,28 @@
 How often does this happen? 
 Additional Information:
+------- Additional Comments From vargaz at gmail.com  2006-10-06 05:49 -------
+A testcase:
+using System;
+using System.Runtime.InteropServices;
+using System.Collections.Generic;
+class Tests {
+    public delegate T ModuleBinder<T>(object o);
+	public ModuleBinder<TDelegate> CreateMethodUnscoped<TDelegate>() {
+		return delegate(object o) {
+			return (TDelegate)(object)null;
+		};
+	}
+This prevents recent IronPython snapshots from being compiled by mono

More information about the mono-bugs mailing list