[Mono-bugs] [Bug 80755][Maj] New - Can't override events in subclasses

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Feb 7 20:54:00 EST 2007

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 slomo at ubuntu.com.


--- shadow/80755	2007-02-07 20:53:59.000000000 -0500
+++ shadow/80755.tmp.3825	2007-02-07 20:54:00.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 80755
+Product: Mono: Compilers
+Version: 1.2
+OS Details: 
+Status: NEW   
+Priority: Major
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: slomo at ubuntu.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Can't override events in subclasses
+since mono 1.2.3 it's impossible to override events from subclasses. This
+leads to a compiler error. This breaks the compilation of Tomboy for
+example. mono worked without any problems on exactly the same code.
+Below is a testcase that gives the following error if compiled with "gmcs
+-out:test.dll -target:library test.cs -pkg:gtk-sharp-2.0"
+test.cs(5,42): error CS0072: `A.TagChanged': cannot override because
+`Gtk.TextTagTable.TagChanged' is not an event
+(Location of the symbol related to previous error)
+Compilation failed: 1 error(s), 0 warnings
+using System;
+using Gtk;
+public class A : TextTagTable {
+	public override event TagChangedHandler TagChanged;

More information about the mono-bugs mailing list