[vala/0.10] Fix connecting to dynamic signals with non-void return type



commit cc706218513f2c8aae44f738b1121e40a7ecb98e
Author: Jürg Billeter <j bitron ch>
Date:   Mon Oct 18 21:51:36 2010 +0200

    Fix connecting to dynamic signals with non-void return type
    
    Fixes bug 622089.

 vala/valamethodcall.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/vala/valamethodcall.vala b/vala/valamethodcall.vala
index a493c56..336e7f7 100644
--- a/vala/valamethodcall.vala
+++ b/vala/valamethodcall.vala
@@ -558,6 +558,7 @@ public class Vala.MethodCall : Expression {
 
 			var dynamic_sig = m.parent_symbol as DynamicSignal;
 			if (dynamic_sig != null && dynamic_sig.handler != null) {
+				dynamic_sig.return_type = dynamic_sig.handler.value_type.get_return_type ().copy ();
 				bool first = true;
 				foreach (FormalParameter param in dynamic_sig.handler.value_type.get_parameters ()) {
 					if (first) {



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