Bug 18511

Summary: Compiler doesn't resolve cref with partial name in XML comment
Product: [Mono] Compilers Reporter: eb1
Component: C#Assignee: Marek Safar <masafa>
Severity: normal CC: mono-bugs+mono
Priority: ---    
Version: 3.2.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Tags: Is this bug a regression?: ---
Last known good build:
Attachments: Demonstration of the bug

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.