[Mono-bugs] [Bug 78688][Nor] New - Broken generics support.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jun 21 21:34:58 EDT 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 krzys at cs.cornell.edu.

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

--- shadow/78688	2006-06-21 21:34:58.000000000 -0400
+++ shadow/78688.tmp.16419	2006-06-21 21:34:58.000000000 -0400
@@ -0,0 +1,29 @@
+Bug#: 78688
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: krzys at cs.cornell.edu               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Summary: Broken generics support. 
+
+interface IA<C> where C : A<C>
+{
+}
+
+class A<C> : IA<A<C>>
+{
+}
+
+error CS0309: The type `A<C>' must be convertible to `A<A<C>>' in order to 
+use it as parameter `C' in the generic type or method `IA<C>'
+
+Works in Visual Studio.


More information about the mono-bugs mailing list