Bugzilla – Bug 320754
[GMCS] Partial derived generic class fails to compile
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by yianwillis@gmail.com 2006-04-04 00:08:28 MST ---- Description of Problem: gmcs with mono 1.1.13.4. When a generic class is a drived class of another generic class using the same generic type and the derived class itself is partial, an error CS0246 is reported while it should not. Steps to reproduce the problem: public class Base<T> { public virtual void func() {} } public partial class Derived<T>: Base<T> { public override void func() {} } Actual Results: test.cs(5,39): error CS0246: The type or namespace name `T' could not be found. Are you missing a using directive or an assembly reference? Expected Results: no error. How often does this happen? Always Additional Information: When either the partial keyword is removed or the base class is not generic, no error occurs. ---- Additional Comments From martin@ximian.com 2006-06-16 14:54:24 MST ---- Cleaning up old bugs, works for me.