Referencing other packages works!!

This commit is contained in:
Krzosa Karol
2022-06-10 19:25:57 +02:00
parent eff0afd96c
commit decab135b8
9 changed files with 101 additions and 42 deletions

View File

@@ -594,7 +594,7 @@ parse_decl(B32 is_global){
}
}
else if(token_match(TK_Identifier, TK_Colon)){
Ast_Expr *typespec = typespec = parse_expr();
Ast_Expr *typespec = parse_expr();
Ast_Expr *expr = parse_assign_expr();
result = ast_var(tname, typespec, tname->intern_val, expr);
}