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

Reply via email to