Bug 319555 (MONO76730) - [/doc] CS0419 is reported for cref to overridden property
Summary: [/doc] CS0419 is reported for cref to overridden property
Status: RESOLVED FIXED
Alias: MONO76730
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other All
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Atsushi Enomoto
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-16 23:14 UTC by Gert Driesen
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:38:17 UTC


---- Reported by gert.driesen@pandora.be 2005-11-16 16:14:28 MST ----

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.



---- Additional Comments From atsushi@ximian.com 2005-11-16 19:10:45 MST ----

Fixed in svn (r53152).



---- Additional Comments From gert.driesen@pandora.be 2005-11-30 06:05:15 MST ----

Atsushi, same here: when will gmcs be sync'ed again ?



---- Additional Comments From atsushi@ximian.com 2005-11-30 10:18:44 MST ----

same here: ask Harinath about gmcs merge.