Bug 319807 (MONO76999) - [/doc] CS1003/CS1658 is not reported for invalid class cref
Summary: [/doc] CS1003/CS1658 is not reported for invalid class cref
Status: RESOLVED FIXED
Alias: MONO76999
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Marek Safar
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-14 23:02 UTC by Gert Driesen
Modified: 2011-03-29 16:30 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:41:19 UTC


---- Reported by gert.driesen@pandora.be 2005-12-14 16:02:44 MST ----

mcs does not report CS1003 (for .NET 1.x) or CS1658 (for .NET 2.0) for an 
invalid class cref.

To reproduce, compile the following code snippet (using mcs /doc:test.xml 
test.cs):

/// <summary>
/// <see cref="Test[]" />
/// </summary>
public class Test {
	static void Main () {
	}
}

Actual result:

Successful compilation with no warnings.

Expected result:

[C# 1.0]

test.cs(2,20): warning CS1003: Syntax error, '(' expected
test.cs(2,16): warning CS1584: XML comment on 'Test' has syntactically 
incorrect cref attribute 'Test[]'

[C# 2.0]

test.cs(2,16): warning CS1584: XML comment on 'Test' has syntactically 
incorrect cref attribute 'Test[]'
test.cs(2,20): warning CS1658: Syntax error, '(' expected. See also error
CS1003.


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

Comment 1 Marek Safar 2011-03-29 16:30:23 UTC
Fixed in master