Bug 316814 (MONO71042) - mcs reports warning for missing doc comment on default ctor
Summary: mcs reports warning for missing doc comment on default ctor
Status: RESOLVED FIXED
Alias: MONO71042
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Atsushi Enomoto
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-06 11:21 UTC by Gert Driesen
Modified: 2007-09-15 21:24 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:03:12 UTC


---- Reported by gert.driesen@pandora.be 2005-01-06 04:21:05 MST ----

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).



---- Additional Comments From atsushi@ximian.com 2005-01-06 10:41:34 MST ----

Fixed in svn too.


Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>Windows XP RC2</cf_op_sys_details>
Unknown operating system unknown. Setting to default OS "Other".