From: Jérémie Astor Date: Sat, 16 May 2020 21:50:28 +0000 (+0200) Subject: :art: @Array @=> decl @Array sets ref X-Git-Tag: nightly~1561 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=de8af94d4337a891cba3979aff96be71567694d6;p=gwion.git :art: @Array @=> decl @Array sets ref --- diff --git a/src/lib/array.c b/src/lib/array.c index 8bbd0d8b..73679ef8 100644 --- a/src/lib/array.c +++ b/src/lib/array.c @@ -153,6 +153,7 @@ static OP_CHECK(opck_array_at) { ERR_N(exp_self(bin)->pos, _("array depths do not match.")) } if(bin->rhs->exp_type == ae_exp_decl) { + SET_FLAG(bin->rhs->d.exp_decl.td, ref); if(bin->rhs->d.exp_decl.list->self->array && bin->rhs->d.exp_decl.list->self->array->exp) ERR_N(exp_self(bin)->pos, _("do not provide array for 'xxx @=> declaration'."))