+2002-07-02 Martin Baulig <martin@gnome.org>
+
+ * expression.cs (ArrayAccess.EmitStoreOpcode): If the type is a
+ ValueType, call TypeManager.TypeToCoreType() on it.
+ (Invocations.EmitParams): Call TypeManager.TypeToCoreType() on
+ the OpCodes.Newarr argument.
+
2002-07-02 Martin Baulig <martin@gnome.org>
* expression.cs (Invocation.EmitCall): When compiling corlib,
array = ig.DeclareLocal (Type.GetType (array_type));
IntConstant.EmitInt (ig, count);
- ig.Emit (OpCodes.Newarr, t);
+ ig.Emit (OpCodes.Newarr, TypeManager.TypeToCoreType (t));
ig.Emit (OpCodes.Stloc, array);
int top = arguments.Count;
else if (t == TypeManager.intptr_type)
ig.Emit (OpCodes.Stelem_I);
else if (t.IsValueType)
- ig.Emit (OpCodes.Stobj, t);
+ ig.Emit (OpCodes.Stobj, TypeManager.TypeToCoreType (t));
else
ig.Emit (OpCodes.Stelem_Ref);
}