Bug 319519 (MONO76690) - CS0419 is reported when referencing overridden method in XML doc
Summary: CS0419 is reported when referencing overridden method in XML doc
Status: RESOLVED FIXED
Alias: MONO76690
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other All
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Atsushi Enomoto
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-13 12:40 UTC by Gert Driesen
Modified: 2016-12-19 14:04 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:37:51 UTC


---- Reported by gert.driesen@pandora.be 2005-11-13 05:40:06 MST ----

When using, for example, <see cref="..." /> for referencing a method that 
has been overridden, mcs always reports CS0419 (ambiguous reference).

To reproduce, compile the following code snippet (using mcs /doc:test.xml 
test.cs):

/// <summary />
public class EntryPoint
{
  static void Main()
  {
  }

  private class A
  {
    public virtual void Decide(int a)
    {
    }
  }

  /// <summary>
  /// <see cref="Decide (int)" />
  /// </summary>
  private class B : A
  {
    public override void Decide(int a)
    {
    }
  }
}

Actual result:

test.cs(18,16): warning CS0419: Ambiguous reference in cref 
attribute 'Decide'. Assuming 'EntryPoint.A.Decide(int)' but other 
overloads including 'EntryPoint.A.Decide(int)' have also matched.

Expected result:

Successful compilation without warnings.

The resulting XML doc should look like this:

<?xml version="1.0"?>
<doc>
    <assembly>
        <name>test</name>
    </assembly>
    <members>
        <member name="T:EntryPoint">
            <summary />
        </member>
        <member name="T:EntryPoint.B">
            <summary>
            <see cref="M:EntryPoint.B.Decide(System.Int32)"/>
            </summary>
        </member>
    </members>
</doc>



---- Additional Comments From atsushi@ximian.com 2005-11-14 02:52:45 MST ----

Fixed in svn (r53000).