[Mono-bugs] [Bug 76727][Wis] New - [/doc] CS0419 is not reported
for ambiguous cref to a overloaded method
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Nov 16 14:57:53 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=76727
--- shadow/76727 2005-11-16 14:57:53.000000000 -0500
+++ shadow/76727.tmp.15796 2005-11-16 14:57:53.000000000 -0500
@@ -0,0 +1,44 @@
+Bug#: 76727
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: gert.driesen at pandora.be
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [/doc] CS0419 is not reported for ambiguous cref to a overloaded method
+
+mcs does not report CS0419 for an ambiguous cref to a method.
+
+To reproduce, compile the following code snippet (using
+mcs /doc:test.xml /warn:4 test.cs)
+
+using System;
+
+/// <summary>
+/// <see cref="DateTime.ToString" />
+/// </summary>
+public class EntryPoint
+{
+ static void Main () {
+ }
+}
+
+Actual result:
+
+No warning
+
+Expected result:
+
+test.cs(4,16): warning CS0419: Ambiguous reference in cref attribute:
+'DateTime.ToString'. Assuming 'System.DateTime.ToString()', but could
+have also matched other overloads including 'System.DateTime.ToString
+(string, System.IFormatProvider)'.
More information about the mono-bugs
mailing list