From edf904b1866d9f999490d05fe2bfead47ff63aa5 Mon Sep 17 00:00:00 2001 From: on-keyday <62627905+on-keyday@users.noreply.github.com> Date: Tue, 31 Dec 2024 02:42:34 +0900 Subject: [PATCH] fix typing error --- src/core/middle/typing.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/middle/typing.cpp b/src/core/middle/typing.cpp index 45296af6..f0b3d487 100644 --- a/src/core/middle/typing.cpp +++ b/src/core/middle/typing.cpp @@ -201,7 +201,8 @@ namespace brgen::middle { auto handle_member_or_index_access = [&](const auto& access_node) { assert(b->op != ast::BinaryOp::define_assign && - b->op != ast::BinaryOp::const_assign); + b->op != ast::BinaryOp::const_assign && + b->op != ast::BinaryOp::append_assign); if (!access_node->expr_type) { warn_not_typed(access_node); return false; @@ -759,6 +760,7 @@ namespace brgen::middle { case ast::BinaryOp::define_assign: case ast::BinaryOp::const_assign: case ast::BinaryOp::in_assign: + case ast::BinaryOp::append_assign: case ast::BinaryOp::add_assign: case ast::BinaryOp::sub_assign: case ast::BinaryOp::mul_assign: