Bugzilla – Bug 319807
[/doc] CS1003/CS1658 is not reported for invalid class cref
Last modified: 2011-03-29 16:30:23 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".
Fixed in master