Using ForArrayRemovable
This commit is contained in:
@@ -354,11 +354,10 @@ 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 (int i = 0; i < result->lambda->args.len; i += 1) {
|
||||
auto &it = result->lambda->args[i];
|
||||
ForArrayRemovable(result->lambda->args) {
|
||||
ForArrayRemovablePrepare(result->lambda->args);
|
||||
if (it->flags & AST_IDENT_POLYMORPH) {
|
||||
result->lambda->args.ordered_remove(it);
|
||||
i -= 1; // @verify: Need to pay attention if this is correct
|
||||
ForArrayRemovableDeclare();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user