[vala] Fix code generated for interface implementations with error mismatch
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Fix code generated for interface implementations with error mismatch
- Date: Sun, 21 Mar 2010 22:31:26 +0000 (UTC)
commit 073f3eaf718ad51776dabf21c408a28622f7d421
Author: Jürg Billeter <j bitron ch>
Date: Sun Mar 21 23:30:20 2010 +0100
Fix code generated for interface implementations with error mismatch
Fixes bug 598862.
codegen/valaccodemethodmodule.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala
index 49ca331..39f264a 100644
--- a/codegen/valaccodemethodmodule.vala
+++ b/codegen/valaccodemethodmodule.vala
@@ -120,7 +120,7 @@ internal class Vala.CCodeMethodModule : CCodeStructModule {
}
}
- if (m.get_error_types ().size > 0 || (m.base_method != null && m.base_method.get_error_types ().size > 0)) {
+ if (m.get_error_types ().size > 0 || (m.base_method != null && m.base_method.get_error_types ().size > 0) || (m.base_interface_method != null && m.base_interface_method.get_error_types ().size > 0)) {
foreach (DataType error_type in m.get_error_types ()) {
generate_type_declaration (error_type, decl_space);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]