[Mono-bugs] [Bug 624242] New: CS1569 while generating XML documentation for generic method that has <typeparam> tag

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jul 21 06:57:48 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=624242

http://bugzilla.novell.com/show_bug.cgi?id=624242#c0


           Summary: CS1569 while generating XML documentation for generic
                    method that has <typeparam> tag
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: eb1 at sil.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=377422)
 --> (http://bugzilla.novell.com/attachment.cgi?id=377422)
Test case that shows the problem

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.6)
Gecko/20100628 Ubuntu/10.04 (lucid) Firefox/3.5

Trying to compile a generic method where the XML comment contains typeparam
tags fails with CS1569.


Reproducible: Always

Steps to Reproduce:
Compile the attached class that contains the following method with 
gmcs -t:library -doc:typeparam.xml typeparam.cs


    /// <summary/>
    /// <typeparam name="T1"/>
    /// <typeparam name="T2"/>
    /// <param name="input"/>
    /// <returns/>
    public static T1[] Convert<T1, T2>(T2[] input) where T1 : T2
    {
        return null;
    }


Actual Results:  
The compilation fails with error CS1569

Expected Results:  
It should compile successfully and add the following to the generated XML
documentation:

        <member name="M:MyClass.Convert``2(``1[])">
            <summary/>
            <typeparam name="T1"/>
            <typeparam name="T2"/>
            <param name="input"/>
            <returns/>
        </member>


Fails since cl #156161. Before it compiled successfully although it didn't
produce entirely correct XML documentation file.

-- 
Configure bugmail: http://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