[Mono-bugs] [Bug 78687][Nor] Changed - [GMCS] nested class and constraints

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jun 21 21:47:28 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=78687

--- shadow/78687	2006-06-21 20:23:34.000000000 -0400
+++ shadow/78687.tmp.16602	2006-06-21 21:47:28.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 78687
 Product: Mono: Compilers
 Version: 1.1
 OS: unknown
 OS Details: 
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: C#
 AssignedTo: rharinath at novell.com                            
 ReportedBy: kjo22 at cornell.edu               
 QAContact: mono-bugs at ximian.com
@@ -32,6 +32,38 @@
 
         ...
     }
 
 ------- Additional Comments From martin at ximian.com  2006-06-21 20:23 -------
 And this is working for me.  Setting Priority to a sane value anyways.
+
+------- Additional Comments From krzys at cs.cornell.edu  2006-06-21 21:47 -------
+I've cut out too much, that's all. 
+The following breaks the compiler.
+
+--------------------------------------
+
+    public interface IA<K> 
+        where K : System.IComparable, System.IComparable<K>
+    {
+    }
+
+    public class A<K> : IA<K> 
+        where K : System.IComparable, System.IComparable<K>
+    {
+    }
+
+    public interface IB<K,T> 
+        where T : System.IDisposable
+    {
+    } 
+
+    public class B<K,T> : IB<K,T> 
+        where T : B<K,T>.Element, new() 
+        where K : System.IComparable, System.IComparable<K>
+    {
+        public abstract class Element : A<K>
+        {
+        }
+    }
+
+


More information about the mono-bugs mailing list