[Mono-bugs] [Bug 77852][Nor] New - [GMCS] r58158: incorrect CS0452 - class constraint resolution failure

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Mar 19 20:10:55 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by atsushi at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=77852

--- shadow/77852	2006-03-19 20:10:55.000000000 -0500
+++ shadow/77852.tmp.3890	2006-03-19 20:10:55.000000000 -0500
@@ -0,0 +1,44 @@
+Bug#: 77852
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: atsushi at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Summary: [GMCS] r58158: incorrect CS0452 - class constraint resolution failure
+
+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.


More information about the mono-bugs mailing list