From 2be13cee3050066665f345deae5ec9d98251544a Mon Sep 17 00:00:00 2001 From: Krzosa Karol Date: Sun, 2 Apr 2023 10:58:30 +0200 Subject: [PATCH] Fix BIG Bug. Win BIGLY --- core_typechecking.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core_typechecking.cpp b/core_typechecking.cpp index 0361a6a..05614e4 100644 --- a/core_typechecking.cpp +++ b/core_typechecking.cpp @@ -1710,7 +1710,7 @@ resolve_expr(Ast_Expr *ast, Resolve_Flag flags, Ast_Type *compound_and_const_str node->resolved_decl = instance; 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 For_Named(matches, match_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->resolved_type = lambda->resolved_type; - return operand_rvalue(node->resolved_type->func.ret); + node->resolved_type = lambda->resolved_type->func.ret; + return operand_rvalue(node->resolved_type); // // CALL End //