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 PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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; +} _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
