From: Jürg Billeter Date: Sat, 20 Mar 2010 15:40:56 +0000 (+0100) Subject: Fix constructor chain up to generic compact classes X-Git-Tag: 0.8.0~146 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd5b2ad9e64efbf57e441ad2818e2141f7325ecc;p=thirdparty%2Fvala.git Fix constructor chain up to generic compact classes Fixes bug 594063. --- diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala index 5c88ef95a..f19bf514d 100644 --- a/codegen/valaccodemethodcallmodule.vala +++ b/codegen/valaccodemethodcallmodule.vala @@ -129,10 +129,12 @@ internal class Vala.CCodeMethodCallModule : CCodeAssignmentModule { ccall.add_argument (new CCodeIdentifier ("self")); } - foreach (DataType base_type in current_class.get_base_types ()) { - if (base_type.data_type is Class) { - add_generic_type_arguments (in_arg_map, base_type.get_type_arguments (), expr, true); - break; + if (!current_class.is_compact) { + foreach (DataType base_type in current_class.get_base_types ()) { + if (base_type.data_type is Class) { + add_generic_type_arguments (in_arg_map, base_type.get_type_arguments (), expr, true); + break; + } } } } else if (m is CreationMethod && m.parent_symbol is Struct) {