https://bugzilla.novell.com/show_bug.cgi?id=387877


           Summary: ParamArrayAttribute should be output as "params"
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


Otherwise it doesn't compile.

--- a/mono-src/mcs/class/System/Microsoft.CSharp/CSharpCodeGenerator.cs Mon May
05 13:56:27 2008 -0400
+++ b/mono-src/mcs/class/System/Microsoft.CSharp/CSharpCodeGenerator.cs Mon May
05 14:29:43 2008 -0400
@@ -955,12 +955,16 @@ namespace Mono.CSharp
                private void OutputAttributes
(CodeAttributeDeclarationCollection attributes, string prefix, bool inline)
                {
                        foreach (CodeAttributeDeclaration att in attributes) {
-                               GenerateAttributeDeclarationsStart
(attributes);
-                               if (prefix != null) {
-                                       Output.Write (prefix);
-                               }
-                               OutputAttributeDeclaration (att);
-                               GenerateAttributeDeclarationsEnd (attributes);
+                               if (att.Name == "System.ParamArrayAttribute") {
+                                       Output.Write("params");
+                               } else {
+                                       GenerateAttributeDeclarationsStart
(attributes);
+                                       if (prefix != null) {
+                                               Output.Write (prefix);
+                                       }
+                                       OutputAttributeDeclaration (att);
+                                       GenerateAttributeDeclarationsEnd
(attributes);
+                               }
                                if (inline) {
                                        Output.Write (" ");
                                } else {


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to