[vala/wip/transform] Recurse arguments when getting error types for method calls



commit f29b5e4d6d1fdc87c3f2b4ae4b8e90a8d54df7bf
Author: Luca Bruno <lucabru src gnome org>
Date:   Tue Feb 4 01:00:39 2014 +0100

    Recurse arguments when getting error types for method calls

 vala/valamethodcall.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vala/valamethodcall.vala b/vala/valamethodcall.vala
index 48c2c7f..67aea6c 100644
--- a/vala/valamethodcall.vala
+++ b/vala/valamethodcall.vala
@@ -171,6 +171,10 @@ public class Vala.MethodCall : Expression {
                        var d = ((DelegateType) mtype).delegate_symbol;
                        d.get_error_types (collection, source_reference);
                }
+
+               foreach (Expression expr in argument_list) {
+                       expr.get_error_types (collection, source_reference);
+               }
        }
 
        public override bool check (CodeContext context) {


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