[Mono-bugs] [Bug 75248][Wis] Changed - [GMCS]junk read by reflection for nested generic types

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jun 15 15:42:06 EDT 2005


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=75248

--- shadow/75248	2005-06-15 15:41:37.000000000 -0400
+++ shadow/75248.tmp.19563	2005-06-15 15:42:06.000000000 -0400
@@ -109,6 +109,47 @@
 I dunno where it gets such context...
 
 ------- Additional Comments From martin at ximian.com  2005-06-15 15:41 -------
 The `out.exe' has an incorrect nested class - it's missing the type
 parameters from the containing class.  Since this is a violation of
 the spec and it'd require a lot of work, let's close this as WONTFIX.
+
+------- Additional Comments From martin at ximian.com  2005-06-15 15:42 -------
+Equivalent C# test case:
+
+=====
+interface IComp<a>
+{ }
+ 
+class opt<c>
+{ }
+ 
+abstract class Func<p1,r>
+{
+        public r apply (p1 x)
+        {
+                throw new System.Exception ();
+        }
+}
+ 
+class NemerleMap<a,b>
+        where a : IComp<a>
+{
+        public opt<b> Find (a k)
+        {
+                return null;
+        }
+ 
+        public void Fold<d> (a y)
+        {
+        }
+ 
+        class lambda<d,aa,bb> : Func<aa,aa>
+                where aa : IComp<aa>
+        {
+                public aa apply2 (aa x)
+                {
+                        return x;
+                }
+        }
+}
+====


More information about the mono-bugs mailing list