[vala] Bug 574403: Direction of formal parameters ignored
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] Bug 574403: Direction of formal parameters ignored
- Date: Thu, 26 Mar 2009 06:01:04 -0400 (EDT)
commit bbad7d44826b5ae517fcc61c91427372eefef903
Author: Feng Yu <fengyu dhcp5-240 iucf indiana edu>
Date: Fri Mar 6 13:55:00 2009 -0500
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.
---
vala/valaformalparameter.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/vala/valaformalparameter.vala b/vala/valaformalparameter.vala
index 74e03ca..e24592a 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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]