[Mono-bugs] [Bug 76277][Min] Changed - Type.ToString() of a generic parameter returns T[T] instead of T

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Oct 6 09:36:36 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=76277

--- shadow/76277	2005-10-05 16:10:29.000000000 -0400
+++ shadow/76277.tmp.32137	2005-10-06 09:36:36.000000000 -0400
@@ -47,6 +47,26 @@
 
 Additional Information:
 either corlib or runtime bug.
 
 ------- Additional Comments From martin at ximian.com  2005-10-05 16:10 -------
 Oh, that's really bad.  I'll take care of that.
+
+------- Additional Comments From martin at ximian.com  2005-10-06 09:36 -------
+Index: class.c
+===================================================================
+--- class.c     (revision 51329)
++++ class.c     (working copy)
+@@ -232,6 +232,11 @@
+                        _mono_type_get_assembly_name
+(type->data.klass, str);
+                break;
+        }
++       case MONO_TYPE_VAR:
++       case MONO_TYPE_MVAR:
++               g_assert (type->data.generic_param->name);
++               g_string_append (str, type->data.generic_param->name);
++               break;
+        default:
+                klass = mono_class_from_mono_type (type);
+                if (klass->nested_in) {
+


More information about the mono-bugs mailing list