]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Recurse arguments when getting error types for method calls
authorLuca Bruno <lucabru@src.gnome.org>
Tue, 4 Feb 2014 00:00:39 +0000 (01:00 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 23 Oct 2018 16:45:45 +0000 (18:45 +0200)
vala/valamethodcall.vala

index a09db9b11bb8611e29265437db813dcd3c9e26fc..9864abc0ced672e7083b6280afa759c1c20e6c15 100644 (file)
@@ -161,6 +161,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) {