[Mono-bugs] [Bug 639867] New: [/doc] CS0419 wrongly reported when referencing overloaded method with parameters

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Sep 16 13:52:52 EDT 2010



           Summary: [/doc] CS0419 wrongly reported when referencing
                    overloaded method with parameters
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.8.x
          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: ---

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

When using, for example, <see cref="Method(MyClass)" /> for referencing a
method that has been overloaded, gmcs wrongly reports CS0419 (ambiguous

Reproducible: Always

Steps to Reproduce:
To reproduce, compile the following code snippet (using gmcs -t:library
-doc:cs0419.xml cs0419.cs):

/// <summary/>
public class MyClass
    /// <summary/>
    public void Method(MyClass a)

    /// <summary/>
    public void Method(MyClass a, int b)

    /// <summary>
    /// <see cref="Method(MyClass)"/>
    /// </summary>
    public void OtherMethod()

Actual Results:  
cs0419.cs(17,21): warning CS0419: Ambiguous reference in cref attribute
`Method'. Assuming `MyClass.Method(MyClass)' but other overloads including
`MyClass.Method(MyClass, int)' have also matched

Expected Results:  
Successful compilation without warnings.

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