]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Bug 574403: Direction of formal parameters ignored
authorFeng Yu <fengyu@dhcp5-240.iucf.indiana.edu>
Fri, 6 Mar 2009 18:55:00 +0000 (13:55 -0500)
committerJürg Billeter <j@bitron.ch>
Thu, 26 Mar 2009 09:56:52 +0000 (10:56 +0100)
When copying a formal parameter, the direction should also be copied.
This fix might also fix other bizarre issues related to copying formal
parameters.

vala/valaformalparameter.vala

index 74e03cad91093661206d422eaf639e86b9dd9189..e24592a1d96983aadd40bea9847c39c01c997f26 100644 (file)
@@ -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 ();