Bugzilla – Bug 323219
[GMCS] Returning generic delegates can incorrectly cause CS1503 errors
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by dmitchell@logos.com 2007-01-16 16:56:54 MST ---- Description of Problem: The attached file has two functions that take delegates and wrap them in new, anonymous delegates. The code compiles fine with Microsoft's C# compiler, but fails with the Mono C# compiler Steps to reproduce the problem: 1. Download the attached source file 2. Attempt to compile it with the /target:library option Actual Results: With gmcs under Mono 1.2.2.1 - Both functions result in CS1503 errors. Note that, despite their extreme similarity, the text of the error in CS1503 is slightly different. With gmcs under Microsoft's .NET 2.0: gmcs crashes with an unhandled System.NotSupportedException. With csc: Compilation completes successfully Expected Results: Compilation should complete successfully How often does this happen? Always ---- Additional Comments From dmitchell@logos.com 2007-01-16 16:57:50 MST ---- Created an attachment (id=171283) This source file will trigger the reported bug ---- Additional Comments From rharinath@novell.com 2007-01-28 07:59:05 MST ---- Should be fixed in SVN r71805. Imported an attachment (id=171283) Unknown bug field "cf_op_sys_details" encountered while moving bug <cf_op_sys_details>Also confirmed on Mac OS X</cf_op_sys_details> Unknown operating system unknown. Setting to default OS "Other".