From d266725f9bff8b0c983e53c01c9bb190ebdba6e2 Mon Sep 17 00:00:00 2001 From: SimonFJ20 Date: Mon, 8 Apr 2024 02:50:04 +0200 Subject: [PATCH] we slow >~< --- checker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checker.c b/checker.c index 791679b..eb0deb0 100644 --- a/checker.c +++ b/checker.c @@ -238,6 +238,7 @@ void checker_check_assign(Checker* checker, SymbolTable* table, ASTNode* node) void checker_check_let(Checker* checker, SymbolTable* table, ASTNode* node) { + checker_check_expr(checker, table, node->let_node.value); Symbol* found = symbol_table_resolve_local(table, node->let_node.id->id_value); if (found != NULL) { @@ -245,7 +246,6 @@ void checker_check_let(Checker* checker, SymbolTable* table, ASTNode* node) print_error("checker: redefinition", node->pos); return; } - checker_check_expr(checker, table, node->let_node.value); } void checker_check_fn(Checker* checker, SymbolTable* table, ASTNode* node) { }