[Mono-bugs] [Bug 37521][Nor] New - mcs does not allow access to protected events in subclasses
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
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 mathpup@mylinuxisp.com.
http://bugzilla.ximian.com/show_bug.cgi?id=37521
--- shadow/37521 Sun Feb 2 06:06:04 2003
+++ shadow/37521.tmp.12403 Sun Feb 2 06:06:04 2003
@@ -0,0 +1,51 @@
+Bug#: 37521
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: mathpup@mylinuxisp.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+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
+
+
+Actual Results:
+
+mouse.cs(9) error CS0103: The name `mousePressEvent' could not be found in
+`QtSamples.QtClass'
+
+
+Expected Results:
+
+Successful compilation
+
+
+How often does this happen?
+
+Always
+
+
+Additional Information: