[Mono-bugs] [Bug 35456][Nor] New - mcs doesn't report errors of type CS0072

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
11 Dec 2002 18:00:50 -0000


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 bugbuddy-import@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=35456

--- shadow/35456	Wed Dec 11 13:00:50 2002
+++ shadow/35456.tmp.2574	Wed Dec 11 13:00:50 2002
@@ -0,0 +1,79 @@
+Bug#: 35456
+Product: Mono/MCS
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: 
+Status: UNCONFIRMED   
+Resolution: 
+Severity: Unknown
+Priority: Normal
+Component: Misc
+AssignedTo: triage@ximian.com                            
+ReportedBy: bugbuddy-import@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs doesn't report errors of type CS0072
+
+Package: Mono/MCS
+Priority: Normal
+Version: CVS Dec-10-2002
+Synopsis: mcs doesn't report errors of type CS0072
+Bugzilla-Product: Mono/MCS
+Bugzilla-Component: Misc
+
+Description:
+Description of Problem:
+
+mcs doesn't report errors of type CS0072: An event can override anything
+but an event.
+
+Steps to reproduce the problem:
+
+The test is in the CVS as mcs/errors/cs0072.cs
+Although the compiler doesn't compile the warnings and errors are not
+the
+appropiate (IMHO).
+
+// cs0072.cs: An event can override anything but another event.
+// Line: 16
+
+using System;
+
+class ErrorCS0072 {
+        delegate void FooHandler ();
+        protected void Callback () {
+        }
+        protected virtual event FooHandler OnFoo;
+}
+
+class Child : ErrorCS0072 {
+        // We are trying to override a method with an event.
+        // To get this right comment the next line and uncomment the
+others below.
+        protected override event FooHandler Callback {
+        //protected override event FooHandler OnFoo {
+                add {
+                        Callback += value;
+                        //OnFoo += value;
+                }
+                remove {
+                        Callback -= value;
+                        //OnFoo -= value;
+                }
+        }
+
+        public static void Main () {
+        }
+}
+
+
+
+
+
+Unknown reporter: jaime@gnome.org, changed to bugbuddy-import@ximian.com.
+Setting qa contact to the default for this product.
+   This bug either had no qa contact or an invalid one.
+
+