2004-08-02 Martin Baulig <martin@ximian.com>
(New.DoEmit): Also use the `Newobj' opcode for generic instances.
svn path=/trunk/mcs/; revision=33137
* expression.cs (Invocation.EmitCall): If we're invoking a method
on a type parameter, use the new `Constrained' prefix opcode.
- (New.DoEmit): Also use the `Newobj' opcode for generic instances.
2004-08-02 Martin Baulig <martin@ximian.com>
//
bool DoEmit (EmitContext ec, bool need_value_on_stack)
{
- bool is_value_type = TypeManager.IsValueType (type) &&
- !type.IsGenericInstance;
+ bool is_value_type = TypeManager.IsValueType (type);
ILGenerator ig = ec.ig;
if (is_value_type){