we slow >~<

This commit is contained in:
SimonFJ20 2024-04-08 02:50:04 +02:00
parent c5a9c83c73
commit d266725f9b

View File

@ -238,6 +238,7 @@ void checker_check_assign(Checker* checker, SymbolTable* table, ASTNode* node)
void checker_check_let(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* found
= symbol_table_resolve_local(table, node->let_node.id->id_value); = symbol_table_resolve_local(table, node->let_node.id->id_value);
if (found != NULL) { if (found != NULL) {
@ -245,7 +246,6 @@ void checker_check_let(Checker* checker, SymbolTable* table, ASTNode* node)
print_error("checker: redefinition", node->pos); print_error("checker: redefinition", node->pos);
return; return;
} }
checker_check_expr(checker, table, node->let_node.value);
} }
void checker_check_fn(Checker* checker, SymbolTable* table, ASTNode* node) { } void checker_check_fn(Checker* checker, SymbolTable* table, ASTNode* node) { }