https://bugzilla.novell.com/show_bug.cgi?id=387040
User [EMAIL PROTECTED] added comment https://bugzilla.novell.com/show_bug.cgi?id=387040#c2 C.J. Collier <[EMAIL PROTECTED]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[EMAIL PROTECTED] --- Comment #2 from C.J. Collier <[EMAIL PROTECTED]> 2008-05-07 14:11:08 MST --- Seo, I've added this (currently failing) test to the regression suite: http://anonsvn.mono-project.com/source/trunk/mcs/tests/ChangeLog Cheers, C.J. (In reply to comment #0 from Sanghyeon Seo) > SVN 102582. > > Testcase: > > public class RuleBuilder<T> where T : class {} > > public interface IDynamicObject { > RuleBuilder<T> GetRule<T>() where T : class; > } > > public class RubyMethod : IDynamicObject { > RuleBuilder<T> IDynamicObject.GetRule<T>() /* where T : class */ { > return new RuleBuilder<T>(); > } > } > > Result: > > Test.cs(8,5): 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 `RuleBuilder<T>'. > > If you uncomment the constraint: > > Test.cs(8,35): error CS0460: `RubyMethod.IDynamicObject.GetRule<T>()': Cannot > specify constraints for overrides or explicit interface implementation methods > > Compiles fine on csc. > > Blocks compiling IronRuby SVN r101. > -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
