* class.c (inflate_generic_type): If we're inflating for a generic
type instance (and not for a generic method), return
MONO_TYPE_MVAR unchanged.
svn path=/trunk/mono/; revision=18848
+2003-10-10 Martin Baulig <martin@ximian.com>
+
+ * class.c (inflate_generic_type): If we're inflating for a generic
+ type instance (and not for a generic method), return
+ MONO_TYPE_MVAR unchanged.
+
2003-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* string-icalls.c: Join ignores null strings in the source array.
{
switch (type->type) {
case MONO_TYPE_MVAR:
- return dup_type (mgen->type_argv [type->data.generic_param->num]);
+ if (mgen)
+ return dup_type (mgen->type_argv [type->data.generic_param->num]);
+ else
+ return type;
case MONO_TYPE_VAR:
/*g_print ("inflating var %d to %s\n", type->data.type_param, mono_type_get_name (tgen->type_argv [type->data.type_param]));*/
return dup_type (tgen->type_argv [type->data.generic_param->num]);