Skip to content

Commit

Permalink
fix analyzer adding list to typeinfo list
Browse files Browse the repository at this point in the history
  • Loading branch information
annacrombie committed Feb 10, 2025
1 parent 64ded72 commit 5a2a363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lang/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ vm_op_add(struct workspace *wk)
obj_array_extend(wk, res, b);
} else if (b_t == obj_typeinfo) {
type_tag t = get_obj_typeinfo(wk, b)->type;
t &= ~tc_array | obj_typechecking_type_tag;
t &= ~(tc_array | obj_typechecking_type_tag);
// Only push b if it has a type other than list. This is because
// if we push b with type tc_list then it looks like we just made a
// nested list which [] + [] is never supposed to do.
Expand Down

0 comments on commit 5a2a363

Please sign in to comment.