Bug 7462 - warning for partial classes: Missing XML comment for publicly visible type or member
Summary: warning for partial classes: Missing XML comment for publicly visible type or...
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Marek Safar
Depends on:
Reported: 2012-09-26 05:02 UTC by Timotheus Pokorra
Modified: 2012-09-28 14:24 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Timotheus Pokorra 2012-09-26 05:02:38 UTC
this might be a new test case for mcs\errors\:

In Mono 2.10, this code does not give a warning:

using System;

namespace Testing
        /// <summary>
        /// description for class Test
        /// </summary>
        public partial class Test
                /// test
                public Test ()
        public partial class Test
                /// test
                public void Foo ()

In Mono 2.11.3 and 2.11.4, you get this message:
mcs test.cs -doc:dummy.xml -warnaserror -warn:4 -target:library
test.cs(15,30): error CS1591: Warning as Error: Missing XML comment for publicly visible type or member `Testing.Test'
Compilation failed: 1 error(s), 0 warnings

Even when I add a comment to the second public partial class Test, I get that warning.
In previous versions of Mono, there was no warning, which is what I would expect.
Comment 1 Marek Safar 2012-09-26 13:32:30 UTC
Fixed in master
Comment 2 Timotheus Pokorra 2012-09-27 09:43:34 UTC
Thanks for the fix and the quick response!
It works now fine when both partial elements are in one file.

But I realise that in case that the class is spread over several files, this problem still exists. Or is this a different bug?
Comment 3 Marek Safar 2012-09-28 14:24:20 UTC
Good observation. Fixed this case too.