Fix BIG Bug. Win BIGLY

This commit is contained in:
Krzosa Karol
2023-04-02 10:58:30 +02:00
parent 14c83a7c5f
commit 2be13cee30

View File

@@ -1710,7 +1710,7 @@ resolve_expr(Ast_Expr *ast, Resolve_Flag flags, Ast_Type *compound_and_const_str
node->resolved_decl = instance; node->resolved_decl = instance;
lambda = instance->lambda; lambda = instance->lambda;
// We know need to fix the matches list CAUSE ITS FUCKED // We now need to fix the matches list CAUSE ITS FUCKED
// Thanks polymorphism // Thanks polymorphism
For_Named(matches, match_it) { For_Named(matches, match_it) {
For_Named(lambda->args, lambda_it) { For_Named(lambda->args, lambda_it) {
@@ -1738,8 +1738,8 @@ resolve_expr(Ast_Expr *ast, Resolve_Flag flags, Ast_Type *compound_and_const_str
} }
node->exprs = items.tight_copy(pctx->perm); node->exprs = items.tight_copy(pctx->perm);
node->resolved_type = lambda->resolved_type; node->resolved_type = lambda->resolved_type->func.ret;
return operand_rvalue(node->resolved_type->func.ret); return operand_rvalue(node->resolved_type);
// //
// CALL End // CALL End
// //