Closer to old state

This commit is contained in:
Krzosa Karol
2022-06-10 14:08:27 +02:00
parent d5d9911f3e
commit 89b3e00ae4
8 changed files with 219 additions and 422 deletions

View File

@@ -581,7 +581,7 @@ parse_decl(B32 is_global){
Ast_Expr *expr = parse_expr();
result = ast_const(tname, tname->intern_val, expr);
if(expr->kind == AST_LAMBDA){
if(expr->kind == AST_LAMBDA_EXPR){
auto a = (Ast_Lambda *)expr;
if(a->scope){
result->kind = AST_LAMBDA;