[Mono-bugs] [Bug 37521][Nor] New - mcs does not allow access to protected events in subclasses
Sun, 2 Feb 2003 06:06:04 -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 email@example.com.
--- shadow/37521 Sun Feb 2 06:06:04 2003
+++ shadow/37521.tmp.12403 Sun Feb 2 06:06:04 2003
@@ -0,0 +1,51 @@
+Summary: mcs does not allow access to protected events in subclasses
+Description of Problem:
+Suppose that a class containing a protected event is compiled into a library using
+csc. When I create a subclass of the first class, and I try to reference the event in my
+subclass, mcs complains that the event is not accessible due to its protection status.
+File to reproduce the bug are attached. Note that it is critical that the library be
+compiled with csc to reproduce the bug. Also, using csc in step 2 below works fine --
+csc compiles events.cs without complaint.
+Steps to reproduce the problem:
+1. csc -target:library event.cs
+2. mcs -r:event.dll mouse.cs
+mouse.cs(9) error CS0103: The name `mousePressEvent' could not be found in
+How often does this happen?