Fix losing type pointer in constant type value

This commit is contained in:
Krzosa Karol
2023-04-02 12:51:58 +02:00
parent f8e78c8ee4
commit 7203589915
3 changed files with 10 additions and 6 deletions

View File

@@ -260,7 +260,7 @@ Ast *ast_copy(Ast *ast, Ast_Scope *parent_scope, Array<Ast_Decl *> *replace, Arr
dst->args.init(pctx->perm, src->args.len);
For(src->args) {
if (it->flags & AST_POLYMORPH) continue;
if (it->flags & AST_IDENT_POLYMORPH) continue;
auto copy = (Ast_Decl *)ast_copy(it, parent_scope, replace, with);
dst->args.add(copy);
}