[Mono-bugs] [Bug 427014] New: event overrides are rejected with error CS0115
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Sep 17 12:22:33 EDT 2008
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: mono-bugs at lists.ximian.com
ReportedBy: grzegorz.herman at gmail.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list