Bug 25544

Summary: Documentation on method with co/contravariant parameters raises CS1569: Error generating XML documentation
Product: [Mono] Compilers Reporter: Alexander Köplinger <alex.koeplinger>
Component: C#Assignee: Marek Safar <masafa>
Status: RESOLVED FIXED    
Severity: normal CC: mono-bugs+mono
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Tags: Is this bug a regression?: ---
Last known good build:
Attachments: test.cs

Description Alexander Köplinger 2014-12-19 20:05:26 UTC
Created attachment 9154 [details]
test.cs

Compiling the attached sample results in the follow compiler error:


$ mcs -target:library -doc:test.xml test.cs 
error CS1569: Error generating XML documentation file `test.xml' (`test.cs(7,24): BatchBlock<T>.ISourceBlock<T[]>.ConsumeMessage(ITargetBlock<T[]>)')
Compilation failed: 1 error(s), 0 warnings

Removing the xml doc comment from the ConsumeMessage() method makes the error go away.
Comment 1 Alexander Köplinger 2014-12-25 17:06:51 UTC
I found out that the issue is the nested array.

Here's a PR with a possible fix: https://github.com/mono/mono/pull/1480
Comment 2 Marek Safar 2015-01-02 17:18:32 UTC
Fixed in master