[Mono-bugs] [Bug 80144][Nor] New - explicit event implementation generates warning
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Dec 4 11:36:06 EST 2006
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 toshok at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80144
--- shadow/80144 2006-12-04 11:36:06.000000000 -0500
+++ shadow/80144.tmp.28165 2006-12-04 11:36:06.000000000 -0500
@@ -0,0 +1,47 @@
+Bug#: 80144
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: toshok at ximian.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: explicit event implementation generates warning
+
+the following test generates this warning:
+
+events.cs(13,21): warning CS0067: The event `Foo.EventInterface.Event' is
+never used
+
+if you make the event public instead, the warning goes away.
+
+
+------
+using System;
+
+public interface EventInterface {
+ event EventHandler Event;
+}
+
+class Foo : EventInterface {
+
+ // the commented out line doesn't give the warning, but the
+ // explicit implementation below does
+ //public event EventHandler Event
+
+ event EventHandler EventInterface.Event
+ {
+ add { }
+ remove { }
+ }
+
+ public static void Main (string[] args) { }
+}
More information about the mono-bugs
mailing list