[Mono-bugs] [Bug 76690][Nor] New - CS0419 is reported when
referencing overridden method
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Nov 13 05:40:06 EST 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by gert.driesen at pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=76690
--- shadow/76690 2005-11-13 05:40:06.000000000 -0500
+++ shadow/76690.tmp.21657 2005-11-13 05:40:06.000000000 -0500
@@ -0,0 +1,77 @@
+Bug#: 76690
+Product: Mono: Compilers
+Version: 1.1
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: atsushi at ximian.com
+ReportedBy: gert.driesen at pandora.be
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: CS0419 is reported when referencing overridden method
+
+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>
More information about the mono-bugs
mailing list