From e21da2b7e9b1a793e3bdea22c0e819ca31c1560c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 16 Dec 2020 17:39:38 +0100 Subject: [PATCH] :art: Improve late checking, again --- src/emit/emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emit/emit.c b/src/emit/emit.c index 9d584aa3..b7143517 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -541,7 +541,7 @@ ANN m_bool emit_array_access(const Emitter emit, struct ArrayAccessInfo *const i // look mum no pos struct Op_Import opi = { .op=insert_symbol("@array"), .lhs=info->array.exp->info->type, .rhs=info->array.type, .data=(uintptr_t)info, .op_type=op_array }; - if(type_ref(info->array.type)) { + if(!info->is_var && (GET_FLAG(info->array.type, abstract) || type_ref(info->array.type))) { const Instr instr = emit_add_instr(emit, GWOP_EXCEPT); instr->m_val = -SZ_INT; } -- 2.43.0