Add DECL_TYPE

This commit is contained in:
Krzosa Karol
2022-06-10 15:05:44 +02:00
parent 89b3e00ae4
commit 3402b4fe4d
3 changed files with 27 additions and 37 deletions

View File

@@ -485,7 +485,7 @@ ast_const(Token *pos, Intern_String name, Ast_Expr *expr){
function Ast_Decl *
ast_type(Token *pos, Intern_String name, Ast_Resolved_Type *type){
AST_NEW(Decl, CONST, pos, AST_DECL);
AST_NEW(Decl, TYPE, pos, AST_DECL);
result->type = type_type;
result->type_val = type;
result->name = name;