Small Messages

This commit is contained in:
Krzosa Karol
2023-04-01 20:57:44 +02:00
parent 7a369d801a
commit 14c83a7c5f
2 changed files with 2 additions and 2 deletions

View File

@@ -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
}
}

View File

@@ -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;
}
}