From: Luca Bruno Date: Tue, 4 Feb 2014 00:00:39 +0000 (+0100) Subject: Recurse arguments when getting error types for method calls X-Git-Tag: 0.43.1~181 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ee72d5d2a29bb59504d05e4d09add53c648a3cb;p=thirdparty%2Fvala.git Recurse arguments when getting error types for method calls --- diff --git a/vala/valamethodcall.vala b/vala/valamethodcall.vala index a09db9b11..9864abc0c 100644 --- a/vala/valamethodcall.vala +++ b/vala/valamethodcall.vala @@ -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) {