Fix losing type pointer in constant type value
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user