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=79018

--- shadow/79018        2006-08-05 15:59:56.000000000 -0400
+++ shadow/79018.tmp.4359       2006-08-05 15:59:56.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 79018
+Product: Mono: Compilers
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: C#
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: gmcs warns 0067 when it reaches a generic event containing generics
+
+When compiling a generic event where one generic argument contains more
+generics, gmcs gives a 0067 warning when it shouldn't:
+
+"warning CS0067: The event `GenericEventNotUsedTest<T>.TestEvent' is never
+used"
+
+-------
+
+public delegate void GenericEventHandler<U, V>(U u, V v);
+
+public class GenericEventNotUsedTest<T>
+{
+    public event GenericEventHandler<GenericEventNotUsedTest<T>, T> TestEvent;
+}
+
+-------
+
+The event is public, so should always be able to be used (I would think).
+In the above example, GenericEventNotUsedTest<T> is generic... if TestEvent
+were instead defined as, say "GenericEventHandler<string, int>", this
+warning would not be thrown. This only seems to occur when the types for
+the generic event are themselves generic.
+
+Will attach a test case shortly.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to