Fix #strict regression, adding Any and Type_Info

This commit is contained in:
Krzosa Karol
2022-06-18 15:24:54 +02:00
parent 8ead876d90
commit 0ed4f62557
5 changed files with 62 additions and 41 deletions

View File

@@ -641,6 +641,7 @@ function void
insert_builtin_into_scope(Ast_Scope *p, String name, Ast_Type *type){
Intern_String string = pctx->intern(name);
Ast_Decl *decl = ast_type(0, string, type);
type->type_id = pctx->type_ids++;
decl->parent_scope = p;
decl->state = DECL_RESOLVED;
insert_into_scope(p, decl);
@@ -663,6 +664,7 @@ insert_builtin_types_into_scope(Ast_Scope *p){
insert_builtin_into_scope(p, "U64"_s, type_u64);
insert_builtin_into_scope(p, "F32"_s, type_f32);
insert_builtin_into_scope(p, "F64"_s, type_f64);
insert_builtin_into_scope(p, "Any"_s, type_any);
}
global F64 parsing_time_begin;