[Mono-bugs] [Bug 77299][Nor] Changed - [GMCS] error for simple recursive generic type

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Mar 22 08:16:09 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 martin at ximian.com.

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

--- shadow/77299	2006-03-22 08:15:46.000000000 -0500
+++ shadow/77299.tmp.6998	2006-03-22 08:16:09.000000000 -0500
@@ -67,6 +67,32 @@
     public void ItsConvertible() {
         Foo<RealFoo<E>> f = this;
     }
 }
 
 =====
+
+------- Additional Comments From martin at ximian.com  2006-03-22 08:16 -------
+Second test case:
+
+======
+public interface Foo<T> {
+}
+
+public abstract class FooBase<T> : Foo<T> {
+}
+
+public class RealFoo<E> : FooBase<RealFoo<E>> {
+    public void ItsConvertible() {
+        Foo<RealFoo<E>> f = this;
+    }
+}
+
+public class Bar<T>
+    where T : Foo<T> {
+}
+
+public class RealBar : Bar<RealFoo<int>> {
+}
+
+======
+


More information about the mono-bugs mailing list