Fix? ordered_remove in loops
This commit is contained in:
@@ -354,9 +354,11 @@ Ast_Decl *get_or_instantiate_polymorph_lambda(Token *pos, Ast_Decl *poly, Array<
|
||||
|
||||
if (!result) {
|
||||
result = (Ast_Decl *)ast_copy(poly, poly->parent_scope, &poly->polymorph_parameters, ¶ms);
|
||||
For(result->lambda->args) {
|
||||
for (int i = 0; i < result->lambda->args.len; i += 1) {
|
||||
auto &it = result->lambda->args[i];
|
||||
if (it->flags & AST_IDENT_POLYMORPH) {
|
||||
result->lambda->args.ordered_remove(it); //@verify: this does not fuck ordereding
|
||||
result->lambda->args.ordered_remove(it);
|
||||
i -= 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user