From 654ffb2a55c3e253948a8bf443ae82b29a420e5d Mon Sep 17 00:00:00 2001 From: Edo Date: Fri, 28 Jul 2023 08:22:33 +0200 Subject: [PATCH] fix(arc): address compiler regression (#141) --- src/arc/compiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/arc/compiler.cpp b/src/arc/compiler.cpp index ef4e2e11..14b726b5 100644 --- a/src/arc/compiler.cpp +++ b/src/arc/compiler.cpp @@ -1521,6 +1521,7 @@ auto compiler::emit_expr_field_ref(expr_field const& exp, bool set) -> void break; case node::expr_identifier: emit_opcode(opcode::OP_EvalLocalVariableCached, fmt::format("{}", variable_access(exp.obj->as()))); + emit_opcode(opcode::OP_CastFieldObject); emit_opcode(opcode::OP_EvalFieldVariableRef, field); if (set) emit_opcode(opcode::OP_SetVariableField); break;