Bugzilla – Bug 319519
CS0419 is reported when referencing overridden method in XML doc
Last modified: 2016-12-19 14:04:36 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).