https://bugzilla.novell.com/show_bug.cgi?id=427014
Summary: event overrides are rejected with error CS0115
Product: Mono: Compilers
Version: 2.0
Platform: All
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
Compiling the following code:
namespace Bug
{
public delegate void D();
public abstract class A
{
public abstract event D E;
}
public sealed class B : A
{
public override event D E
{
add { }
remove { }
}
}
}
fails with
`Bug.B.E' is marked as an override but no suitable event found to
override(CS0115)
Expected result: clean compile
Reproducible: always
Compiler: gmcs, version 1.9.1.0
System: Gentoo Linux, x86 (32 bit)
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs