We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e34089d commit 035c858Copy full SHA for 035c858
mono/metadata/icall.c
@@ -854,12 +854,9 @@ ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_InitializeArray (MonoAr
854
int align;
855
const char *field_data;
856
857
- if (MONO_TYPE_IS_REFERENCE (type) ||
858
- (type->type == MONO_TYPE_VALUETYPE &&
859
- (!mono_type_get_class (type) ||
860
- mono_type_get_class (type)->has_references))) {
+ if (MONO_TYPE_IS_REFERENCE (type) || type->type == MONO_TYPE_VALUETYPE) {
861
MonoException *exc = mono_get_exception_argument("array",
862
- "Cannot initialize array containing references");
+ "Cannot initialize array of non-primitive type.");
863
mono_raise_exception (exc);
864
}
865
0 commit comments