From d7c96b0ebc0c2a48b66c19bfc341c0cae46067c0 Mon Sep 17 00:00:00 2001 From: Krzosa Karol Date: Mon, 3 Apr 2023 21:23:44 +0200 Subject: [PATCH] ast_copy missed case --- core_polymorph.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core_polymorph.cpp b/core_polymorph.cpp index a2282c2..cefc23e 100644 --- a/core_polymorph.cpp +++ b/core_polymorph.cpp @@ -352,6 +352,7 @@ Ast *ast_copy(Ast *ast, Ast_Scope *parent_scope, Array *repl) Ast_Array *src = (Ast_Array *)ast; Ast_Array *dst = ast_create_copy(parent_scope, Ast_Array, ast); dst->expr = (Ast_Expr *)ast_copy(src->expr, parent_scope, repl); + dst->base = (Ast_Expr *)ast_copy(src->base, parent_scope, repl); result = dst; } break;