[Mono-bugs] [Bug 76693][Cos] New - CS1569 is reported for XML
comment on private virtual method.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Nov 13 10:59:41 EST 2005
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 at pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=76693
--- shadow/76693 2005-11-13 10:59:41.000000000 -0500
+++ shadow/76693.tmp.29375 2005-11-13 10:59:41.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 76693
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Cosmetic
+Component: C#
+AssignedTo: atsushi at ximian.com
+ReportedBy: gert.driesen at pandora.be
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: CS1569 is reported for XML comment on private virtual method.
+
+While making a test case for another mcs bug, I make a typo and noticed
+that mcs reports error CS1569 when an XML comment is placed on a private
+virtual method (which ofcourse causes a compile error).
+
+This is a very minor issue, as the code is not compilable but I'm
+reporting it anyway ...
+
+To reproduce this issue, compile the following code snippet:
+
+/// <summary />
+public class EntryPoint {
+ static void Main () {
+ }
+
+ /// <summary />
+ private virtual void Define (bool test) {
+ }
+}
+
+Actual result:
+
+test.cs(7,23): error CS0621: `EntryPoint.Define(bool)': virtual or
+abstract members cannot be private
+error CS1569: Error generating XML documentation file `test.xml' (`Object
+reference not set to an instance of an object')
+
+Expected result:
+
+test.cs(7,23): error CS0621: `EntryPoint.Define(bool)': virtual or
+abstract members cannot be private
More information about the mono-bugs
mailing list