[Mono-bugs] [Bug 76726][Nor] New - [/doc] CS0419 reported for cref
to implemented property.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Nov 16 12:55:32 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=76726
--- shadow/76726 2005-11-16 12:55:32.000000000 -0500
+++ shadow/76726.tmp.14058 2005-11-16 12:55:32.000000000 -0500
@@ -0,0 +1,61 @@
+Bug#: 76726
+Product: Mono: Compilers
+Version: 1.0
+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: [/doc] CS0419 reported for cref to implemented property.
+
+mcs reports CS0419 if a cref points to a property that is defined in an
+implemented interface.
+
+To reproduce, compile the following code snippet:
+
+/// <summary />
+public interface IExecutable {
+ /// <summary />
+ void Execute ();
+
+ /// <summary />
+ object Current {
+ get;
+ }
+}
+
+/// <summary>
+/// <see cref="Execute" />
+/// <see cref="Current" />
+/// </summary>
+public class A : IExecutable {
+ static void Main () {
+ }
+
+ /// <summary />
+ public void Execute () {
+ }
+
+ /// <summary />
+ public object Current {
+ get { return null; }
+ }
+}
+
+Actual result:
+
+test.cs(16,14): warning CS0419: Ambiguous reference in cref
+attribute 'Current'. Assuming 'A.Current' but other overloads
+including 'IExecutable.Current' also matched
+
+Expected result:
+
+No warnings.
More information about the mono-bugs
mailing list