[Mono-bugs] [Bug 71042][Nor] New - mcs reports warning for missing doc comment on default ctor

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 6 Jan 2005 04:21:05 -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.


--- shadow/71042	2005-01-06 04:21:05.000000000 -0500
+++ shadow/71042.tmp.14681	2005-01-06 04:21:05.000000000 -0500
@@ -0,0 +1,46 @@
+Bug#: 71042
+Product: Mono: Compilers
+Version: 1.1
+OS Details: Windows XP RC2
+Status: NEW   
+Priority: Normal
+Component: C#
+AssignedTo: atsushi@ximian.com                            
+ReportedBy: gert.driesen@pandora.be               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: mcs reports warning for missing doc comment on default ctor
+When a valid doc comment is present on both the Test class and the Main 
+method mcs still reports a warning :
+using System;
+/// <summary>
+/// whatever
+/// </summary>
+public class Test {
+        /// <summary>
+        /// whatever
+        /// </summary>
+        public static void Main() {
+        }
+The output from mcs is:
+test.cs(6) warning CS1591: Missing XML comment for publicly visible type 
+or member 'Test.Test()'
+Compilation succeeded - 1 warning(s)
+Note that the warning also talks about the default ctor. In some way this 
+warning makes sense, ofcourse. But it does not match the behavior of csc.
+Note when the class is static, no warning is emitted (which is fine).
+This works fine using csc (both 1.x and 2.0).