Polymorphs nested structs

This commit is contained in:
Krzosa Karol
2023-04-01 14:31:41 +02:00
parent 2c19658115
commit 3d438645a0
7 changed files with 48 additions and 23 deletions

View File

@@ -289,11 +289,10 @@ resolve_everything_in_module(Ast_Module *module) {
pctx->time.typechecking = os_time();
For_Named(module->all_loaded_files, file) {
For_Named(file->decls, decl) {
bool is_polymorph = decl->flags & AST_POLYMORPH;
if (is_polymorph) continue;
if (decl->flags & AST_POLYMORPH) continue;
// @cleanup: Why I'm not calling resolve_decl here?
resolve_name(file, decl->pos, decl->name);
if (decl->kind == AST_STRUCT || decl->kind == AST_UNION) type_complete(decl->type_val);
}
}