Bug 319552 (MONO76727) - [/doc] CS0419 is not reported for ambiguous cref to a overloaded method
Summary: [/doc] CS0419 is not reported for ambiguous cref to a overloaded method
Status: RESOLVED FIXED
Alias: MONO76727
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Atsushi Enomoto
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-16 21:57 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
I have very incomplete fix that breaks several /doc tests. It's not that simple. (3.94 KB, patch)
2005-11-30 17:18 UTC, Thomas Wiest
Details | Diff

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:15 UTC


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

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)'.



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

Atsushi, any idea if/when you'll fix this issue ?

Thx !



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

Created an attachment (id=168825)
I have very incomplete fix that breaks several /doc tests. It's not that simple.




---- Additional Comments From atsushi@ximian.com 2005-12-01 05:20:08 MST ----

Actually, just fixing this exact bug is easy, so now I fixed it in svn
(r53751).

Imported an attachment (id=168825)

Unknown operating system unknown. Setting to default OS "Other".