[Mono-bugs] [Bug 387877] New: ParamArrayAttribute should be output as "params"

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed May 7 12:58:12 EDT 2008


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: mono-bugs at lists.ximian.com
        ReportedBy: tedu at fogcreek.com
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list