[vala] Fix constructor chain up to generic compact classes
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Fix constructor chain up to generic compact classes
- Date: Sat, 20 Mar 2010 15:41:54 +0000 (UTC)
commit dd5b2ad9e64efbf57e441ad2818e2141f7325ecc
Author: Jürg Billeter <j bitron ch>
Date: Sat Mar 20 16:40:56 2010 +0100
Fix constructor chain up to generic compact classes
Fixes bug 594063.
codegen/valaccodemethodcallmodule.vala | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala
index 5c88ef9..f19bf51 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]