Declaring variables of type works

This commit is contained in:
Krzosa Karol
2023-03-29 09:54:15 +02:00
parent 9b91f77cf0
commit c9072711b5
2 changed files with 3 additions and 0 deletions

View File

@@ -114,6 +114,7 @@ string_simple_decl_prefix(Ast_Type *ast) {
String string = pctx->fmt("Tuple%llu ", ast->type_id);
return string;
} break;
case TYPE_UNION:
case TYPE_STRUCT: {
auto constant = (Ast_Decl *)ast->ast;
auto name = constant->unique_name;