Small Messages
This commit is contained in:
@@ -358,7 +358,7 @@ Ast_Decl *get_or_instantiate_polymorph_lambda(Token *pos, Ast_Decl *poly, Array<
|
||||
auto &it = result->lambda->args[i];
|
||||
if (it->flags & AST_IDENT_POLYMORPH) {
|
||||
result->lambda->args.ordered_remove(it);
|
||||
i -= 1;
|
||||
i -= 1; // @verify: Need to pay attention if this is correct
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1700,7 +1700,7 @@ resolve_expr(Ast_Expr *ast, Resolve_Flag flags, Ast_Type *compound_and_const_str
|
||||
Match &it = matches[i];
|
||||
if (it.lambda_arg->flags & AST_POLYMORPH) {
|
||||
replacements.add(it.call_arg);
|
||||
matches.ordered_remove(it);
|
||||
matches.ordered_remove(it); // @verify: Need to pay attention if this is correct
|
||||
i -= 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user