From: Rico Tzschichholz Date: Tue, 23 Oct 2018 11:46:34 +0000 (+0200) Subject: vala: Add source_reference to local variable of catch-clause X-Git-Tag: 0.43.1~178 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88ca237ccd7ba0a5586422f24333df6960f88994;p=thirdparty%2Fvala.git vala: Add source_reference to local variable of catch-clause --- diff --git a/vala/valacatchclause.vala b/vala/valacatchclause.vala index bb8d73cb2..1ff942116 100644 --- a/vala/valacatchclause.vala +++ b/vala/valacatchclause.vala @@ -129,7 +129,7 @@ public class Vala.CatchClause : CodeNode { } if (variable_name != null) { - error_variable = new LocalVariable (error_type.copy (), variable_name); + error_variable = new LocalVariable (error_type.copy (), variable_name, null, source_reference); body.scope.add (variable_name, error_variable); body.add_local_variable (error_variable);