Bug 319522 (MONO76693) - CS1569 is reported for XML comment on private virtual method.
Summary: CS1569 is reported for XML comment on private virtual method.
Status: RESOLVED FIXED
Alias: MONO76693
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Atsushi Enomoto
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-13 17:59 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:37:52 UTC


---- Reported by gert.driesen@pandora.be 2005-11-13 10:59:41 MST ----

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



---- Additional Comments From atsushi@ximian.com 2005-11-13 13:08:18 MST ----

Fixed in svn (r52978).


Unknown operating system unknown. Setting to default OS "Other".