Skip to content

Commit

Permalink
fix typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
on-keyday committed Dec 30, 2024
1 parent 040b900 commit edf904b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/middle/typing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit edf904b

Please sign in to comment.