* reflection.c (mono_field_get_object): If we have
`field->generic_info', take the attributes from
`field->generic_info->generic_type'.
svn path=/trunk/mono/; revision=31017
+2004-07-12 Martin Baulig <martin@ximian.com>
+
+ * reflection.c (mono_field_get_object): If we have
+ `field->generic_info', take the attributes from
+ `field->generic_info->generic_type'.
+
2004-07-12 Martin Baulig <martin@ximian.com>
* mono-debug.c (mono_debug_init): Don't take a `MonoDomain *'.
res->klass = klass;
res->field = field;
res->name = mono_string_new (domain, field->name);
- res->attrs = field->type->attrs;
+ if (field->generic_info)
+ res->attrs = field->generic_info->generic_type->attrs;
+ else
+ res->attrs = field->type->attrs;
res->type = mono_type_get_object (domain, field->type);
CACHE_OBJECT (field, res, klass);
return res;