[vala] Declare return types of delegates



commit eeaaffc35c5e9b681f6da5ce42b767685cd3da7a
Author: Jürg Billeter <j bitron ch>
Date:   Wed Apr 8 17:18:01 2009 +0200

    Declare return types of delegates
---
 gobject/valaccodedelegatemodule.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gobject/valaccodedelegatemodule.vala b/gobject/valaccodedelegatemodule.vala
index 2d579f4..30d1796 100644
--- a/gobject/valaccodedelegatemodule.vala
+++ b/gobject/valaccodedelegatemodule.vala
@@ -37,6 +37,8 @@ internal class Vala.CCodeDelegateModule : CCodeArrayModule {
 			return;
 		}
 
+		generate_type_declaration (d.return_type, decl_space);
+
 		var cfundecl = new CCodeFunctionDeclarator (d.get_cname ());
 		foreach (FormalParameter param in d.get_parameters ()) {
 			generate_parameter (param, decl_space, new HashMap<int,CCodeFormalParameter> (), null);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]