[vala] codegen: Support array concatenation for captured variables
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] codegen: Support array concatenation for captured variables
- Date: Sat, 16 Oct 2010 17:49:13 +0000 (UTC)
commit 4d7129f08963c1d092f045b8c6a0000480c9c780
Author: Jürg Billeter <j bitron ch>
Date: Sat Oct 16 19:48:36 2010 +0200
codegen: Support array concatenation for captured variables
Fixes bug 630159.
codegen/valaccodearraymodule.vala | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valaccodearraymodule.vala b/codegen/valaccodearraymodule.vala
index 63ada14..4c11d4e 100644
--- a/codegen/valaccodearraymodule.vala
+++ b/codegen/valaccodearraymodule.vala
@@ -790,9 +790,8 @@ public class Vala.CCodeArrayModule : CCodeMethodCallModule {
var element = binary.right;
var array_var = assignment.left.symbol_reference;
- var array_local = array_var as LocalVariable;
if (array_type.rank == 1 && array_var != null && array_var.is_internal_symbol ()
- && ((array_var is LocalVariable && !array_local.captured) || array_var is Field)) {
+ && (array_var is LocalVariable || array_var is Field)) {
// valid array add
} else {
Report.error (assignment.source_reference, "Array concatenation not supported for public array variables and parameters");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]