[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.

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

--- 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: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: slomo at ubuntu.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Can't override events in subclasses
+
+Hi,
+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 1.2.2.1 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
+/usr/lib/mono/gac/gtk-sharp/2.10.0.0__35e10195dab3c99f/gtk-sharp.dll
+(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