Fix polymorph invalid resolved_decl in call

This commit is contained in:
Krzosa Karol
2023-04-01 19:45:04 +02:00
parent 7bf3e107bb
commit 3d8dfd49fd
2 changed files with 4 additions and 2 deletions

View File

@@ -317,6 +317,7 @@ Ast_Decl *get_or_instantiate_polymorph_type(Token *pos, Ast_Decl *poly, Array<As
assert(result->di != poly->di);
result->name = get_unique_name_for_decl(result);
result->unique_name = result->name;
poly->polymorphs.allocator = pctx->heap;
poly->polymorphs.add(result);