Bugzilla – Bug 320609
[GMCS] r58158: incorrect CS0452 - class constraint resolution failure
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by atsushi@ximian.com 2006-03-19 20:10:55 MST ---- The example code below does not comple with gmcs after r58158: -------- public interface I {} internal class A<T> : B<T> where T : class {} public abstract class B<T> : I where T : class {} Actual Results: class-constraints.cs(3,23): error CS0452: The type `T' must be a reference type in order to use it as type parameter `T' in the generic type or method `B<T>'. class-constraints.cs(3,23): error CS0452: The type `T' must be a reference type in order to use it as type parameter `T' in the generic type or method `B<T>'. Expected Results: no CS0452 error. How often does this happen? consistently. Additional Information: I think there used to be similar bug that once Martin had fixed. ---- Additional Comments From rharinath@novell.com 2006-03-20 10:10:09 MST ---- Should be fixed in SVN r58187 Unknown operating system unknown. Setting to default OS "Other".