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 [EMAIL PROTECTED]

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

--- shadow/77353        2006-01-25 11:30:54.000000000 -0500
+++ shadow/77353.tmp.2157       2006-01-25 11:30:54.000000000 -0500
@@ -0,0 +1,55 @@
+Bug#: 77353
+Product: Mono: Compilers
+Version: 1.1
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Compiler Error for valid code using `ref` on a delegate
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Using `ref' on a paramater within a delegate declaration results in a
+CS0100 error for a "duplicate argument name" on the `ref' parameter.
+
+Compile the following code: mcs -t:library Zacix.cs
+
+       using System.Text;
+
+       namespace Agresso.Foundation {
+               public class Function
+               {
+               }
+
+               public delegate void Translate(Function function, 
+                       ref StringBuilder result);
+       }
+
+Actual Results:
+
+Zacix.cs(9) error CS0100: The parameter name `result' is a duplicate
+Compilation failed: 1 error(s), 0 warnings
+
+Expected Results:
+
+No error.
+
+How often does this happen? 
+
+Always.
+
+Additional Information:
+
+This bug has been around for a _long_ time -- it fails with mcs 1.0.5 as
+well as mcs 1.1.13 (or whatever version I had in my svn tree).
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to