[Mono-bugs] [Bug 73385][Nor] New - CS1041 not reported for cref containing keyword

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 5 Mar 2005 10:33:17 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gert.driesen@pandora.be.

http://bugzilla.ximian.com/show_bug.cgi?id=73385

--- shadow/73385	2005-03-05 10:33:17.000000000 -0500
+++ shadow/73385.tmp.25728	2005-03-05 10:33:17.000000000 -0500
@@ -0,0 +1,40 @@
+Bug#: 73385
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: atsushi@ximian.com                            
+ReportedBy: gert.driesen@pandora.be               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: CS1041 not reported for cref containing keyword
+
+mcs does not report CS1041 for cref's containing keyword.
+
+To reproduce, compile the following code snippet (using 
+mcs /target:library /doc:test.xml test.cs):
+
+/// <summary><see cref="true" />, <see cref="catch" /></summary>
+public enum Test {
+	/// <summary>Maybe</summary>
+	@true,
+
+	/// <summary>Maybe</summary>
+	@catch
+}
+
+Actual result:
+
+Compilation succeeds without warnings
+
+Expected result:
+
+test.cs(1,25): warning CS1041: Identifier expected, 'true' is a keyword
+test.cs(1,47): warning CS1041: Identifier expected, 'catch' is a keyword