Bugzilla – Bug 323046
[GMCS] Invalid CS0169 in generic class
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by gert.driesen@pandora.be 2006-12-25 14:10:10 MST ---- gmcs currently mistakenly reports CS0169 even if a method is used as delegate in a generic class. To reproduce, compile the following using gmcs: using System; public class Test { static void Main () { } } public class A<T> { public event EventHandler<EventArgs> KeyPress; public A () { KeyPress += new EventHandler<EventArgs> (ListView_KeyPress); } private void ListView_KeyPress (object sender, EventArgs e) { } } Actual result: test.cs(20,15): warning CS0169: The private method 'A<T>.ListView_KeyPress (object, System.EventArgs)' is never used Expected result: no warning ---- Additional Comments From martin@ximian.com 2007-04-10 13:58:51 MST ---- Fixed in SVN.