From 83dcf25860a3ed5c49cfe17407ebfe3aa3631d16 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sat, 29 Jun 2019 20:13:05 +0200 Subject: [PATCH] :bug: Fix [ , , ] @=> xxx array[] --- src/lib/array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.0