2008-05-26 Juerg Billeter <j@bitron.ch>
* gobject/valaccodeinvocationexpressionbinding.vala:
Fix implicit casts for instances in invocation expressions,
fixes bug 530369
svn path=/trunk/; revision=1449
+2008-05-26 Jürg Billeter <j@bitron.ch>
+
+ * gobject/valaccodeinvocationexpressionbinding.vala:
+
+ Fix implicit casts for instances in invocation expressions,
+ fixes bug 530369
+
2008-05-26 Jürg Billeter <j@bitron.ch>
* vala/valaforeachstatement.vala:
// parent_symbol may be null for late bound methods
if (base_method.parent_symbol != null) {
- var instance_target_type = ma.value_type.copy ();
- instance_target_type.data_type = (Typesymbol) base_method.parent_symbol;
+ var instance_target_type = codegen.get_data_type_for_symbol ((Typesymbol) base_method.parent_symbol);
instance = codegen.get_implicit_cast_expression (instance, instance_expression_type, instance_target_type);
}