From: Feng Yu Date: Fri, 6 Mar 2009 18:55:00 +0000 (-0500) Subject: Bug 574403: Direction of formal parameters ignored X-Git-Tag: 0.6.0~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbad7d44826b5ae517fcc61c91427372eefef903;p=thirdparty%2Fvala.git Bug 574403: Direction of formal parameters ignored When copying a formal parameter, the direction should also be copied. This fix might also fix other bizarre issues related to copying formal parameters. --- diff --git a/vala/valaformalparameter.vala b/vala/valaformalparameter.vala index 74e03cad9..e24592a1d 100644 --- a/vala/valaformalparameter.vala +++ b/vala/valaformalparameter.vala @@ -183,6 +183,7 @@ public class Vala.FormalParameter : Symbol { if (!ellipsis) { var result = new FormalParameter (name, parameter_type, source_reference); result.params_array = params_array; + result.direction = this.direction; return result; } else { return new FormalParameter.with_ellipsis ();