From 36b30db1bdf0e363da493bd15c5ce2d67c36e3ae Mon Sep 17 00:00:00 2001 From: odow Date: Fri, 15 Dec 2023 12:31:35 +1300 Subject: [PATCH] Update --- src/Containers/macro.jl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Containers/macro.jl b/src/Containers/macro.jl index 6d5a94d09c9..28ca2e5b8b6 100644 --- a/src/Containers/macro.jl +++ b/src/Containers/macro.jl @@ -425,10 +425,13 @@ function build_name_expr( kwargs::Dict{Symbol,Any}, ) base_name = get(kwargs, :base_name, string(something(name, ""))) + if !(base_name isa String) + base_name = esc(base_name) + end if isempty(index_vars) || base_name == "" - return esc(base_name) + return base_name end - expr = Expr(:call, :string, esc(base_name), "[") + expr = Expr(:call, :string, base_name, "[") for index in index_vars # Converting the arguments to strings before concatenating is faster: # https://github.com/JuliaLang/julia/issues/29550.