Bug 18511 - Compiler doesn't resolve cref with partial name in XML comment
Summary: Compiler doesn't resolve cref with partial name in XML comment
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: 3.2.x
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Marek Safar
Depends on:
Reported: 2014-03-21 11:39 UTC by eb1
Modified: 2014-04-30 06:14 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Demonstration of the bug (428 bytes, text/x-csharp)
2014-03-21 11:40 UTC, eb1

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description eb1 2014-03-21 11:39:50 UTC
The following four lines should all resolve to the same "F:XmlComments.Program.MyEnum.One":

		/// <see cref="MyEnum.One"/>
		/// <see cref="Program.MyEnum.One"/>
		/// <see cref="XmlComments.Program.MyEnum.One"/>
		/// <see cref="F:XmlComments.Program.MyEnum.One"/>

However, currently the middle two produce a warning CS1574. See attached sample that demonstrates the problem. Compile with:
dmcs /noconfig /debug:full /debug+ /optimize- /out:obj/x86/Debug/XmlComments.exe Program.cs /target:exe /warnaserror+ /define:"DEBUG;TRACE" /doc:bin/Debug/XmlComments.XML /platform:x86 /warn:4
Comment 1 eb1 2014-03-21 11:40:35 UTC
Created attachment 6376 [details]
Demonstration of the bug
Comment 2 eb1 2014-03-21 12:48:24 UTC
Proposed fix in PR #966
Comment 3 Marek Safar 2014-04-30 06:14:31 UTC
Fix applied. Thanks for the PR.