[Mono-bugs] [Bug 73753][Maj] New - Incorrect handling of contraints in generics.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 16 Mar 2005 03:32:22 -0500 (EST)


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@cs.cornell.edu.

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

--- shadow/73753	2005-03-16 03:32:22.000000000 -0500
+++ shadow/73753.tmp.29508	2005-03-16 03:32:22.000000000 -0500
@@ -0,0 +1,29 @@
+Bug#: 73753
+Product: Mono: Compilers
+Version: 1.1
+OS: Windows XP (Cygwin)
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: krzys@cs.cornell.edu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Summary: Incorrect handling of contraints in generics.
+
+No code of the following type, including subclass of a generic in the 
+constrain, will compile on the MONO compiler even though it's a valid CLR 
+code and will compile without problems with the Microsoft compiler.
+
+public class Moo<C> where C : Moo<C>.Foo
+{
+  public class Foo
+  {
+  }
+}
+
+Mono compiler response: **ERROR**: file class.c: line 1912 ...