[Mono-bugs] [Bug 76730][Nor] New - [/doc] CS0419 is reported for
cref to overridden property
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Nov 16 16:14:29 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=76730
--- shadow/76730 2005-11-16 16:14:29.000000000 -0500
+++ shadow/76730.tmp.16784 2005-11-16 16:14:29.000000000 -0500
@@ -0,0 +1,63 @@
+Bug#: 76730
+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: [/doc] CS0419 is reported for cref to overridden property
+
+mcs reports CS0419 for cref to an overridden property.
+
+To reproduce, compile the following code snippet using mcs:
+
+/// <summary />
+public class A {
+ static void Main () {
+ }
+
+ /// <summary />
+ public virtual string Level {
+ get { return null; }
+ }
+
+ /// <summary />
+ public virtual void Test () {
+ }
+}
+
+/// <summary>
+/// <see cref="Level" />
+/// <see cref="Test" />
+/// </summary>
+public class B : A {
+ /// <summary />
+ public override string Level {
+ get { return null; }
+ }
+
+ /// <summary />
+ public override void Test () {
+ }
+}
+
+Actual result:
+
+test.cs(20,14): warning CS0419: Ambiguous reference in cref
+attribute 'Level'. Assuming 'B.Level' but other overloads
+including 'A.Level' have also matched
+
+Expected result:
+
+No warning.
+
+Note: a cref to the overriden method is working just fine.
More information about the mono-bugs
mailing list