[Mono-bugs] [Bug 79018][Min] New - gmcs warns 0067 when it reaches a generic event containing generics

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Aug 5 15:59:56 EDT 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 abockover at novell.com.


--- 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   
+Priority: Minor
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: abockover at novell.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+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
+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.

More information about the mono-bugs mailing list