From: fennecdjay Date: Sat, 29 Jun 2019 18:13:05 +0000 (+0200) Subject: :bug: Fix [ , , ] @=> xxx array[] X-Git-Tag: nightly~2382^2~6 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=83dcf25860a3ed5c49cfe17407ebfe3aa3631d16;p=gwion.git :bug: Fix [ , , ] @=> xxx array[] --- diff --git a/src/lib/array.c b/src/lib/array.c index 45548935..b40d3d87 100644 --- a/src/lib/array.c +++ b/src/lib/array.c @@ -156,7 +156,7 @@ static OP_CHECK(opck_array_at) { if(bin->lhs->type->array_depth != bin->rhs->type->array_depth) ERR_N(exp_self(bin)->pos, _("array depths do not match.")) if(bin->rhs->exp_type == ae_exp_decl) { - if(bin->rhs->d.exp_decl.list->self->array) + if(bin->rhs->d.exp_decl.list->self->array->exp) ERR_N(exp_self(bin)->pos, _("do not provide array for 'xxx @=> declaration'.")) } bin->rhs->emit_var = 1;