Bugzilla – Bug 321139
[GMCS] generic type argument is incorrectly ignored
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by adrinael@adrinael.net 2006-05-15 03:46:33 MST ---- Here's code: using System; using System.Collections; using System.Collections.Generic; public class Qux<X,V> : IEnumerable<V> where V : IComparable<V> { public IEnumerator<V> GetEnumerator() { yield break; } IEnumerator IEnumerable.GetEnumerator() { yield break; } } public class foo<X,V> : Qux<X,V> where V : IComparable<V> { } And here's the compile result: generics.cs(19,25): error CS0305: Using the generic type `System.IComparable<T>' requires 1 type arguments Expected Results: Successful compile How often does this happen? Always Additional Information: Happens with mono 1.1.13.7-1.fc5.1 (Fedora Core 5 package) and with svn mono (trunk) HEAD pulled 2006-05-12 -ish. ---- Additional Comments From atsushi@ximian.com 2006-05-15 04:08:59 MST ---- Also happens in HEAD. csc compiles. ---- Additional Comments From martin@ximian.com 2006-06-13 12:25:18 MST ---- Fixed in SVN. ---- Additional Comments From adrinael@adrinael.net 2006-06-15 07:14:15 MST ---- I still get this error even with the patch. ---- Additional Comments From martin@ximian.com 2006-06-16 13:50:07 MST ---- Fixed in SVN. Unknown bug field "cf_op_sys_details" encountered while moving bug <cf_op_sys_details>Fedora Core 5</cf_op_sys_details> Unknown operating system unknown. Setting to default OS "Other".