Skip to content

Commit

Permalink
Fix create_result on Vector{Symbol}
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Sánchez Ramírez authored and mofeing committed Jun 24, 2024
1 parent 942c77e commit 814cd93
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Reactant.jl
Original file line number Diff line number Diff line change
Expand Up @@ -696,9 +696,7 @@ function create_result(tocopy::NamedTuple, path, result_stores)
end
end

function create_result(
concrete_result_maker, ::Type{MakeArray{AT,tocopy}}, path, result_stores
) where {AT,tocopy}
function create_result(::Type{MakeArray{AT,tocopy}}, path, result_stores) where {AT,tocopy}
elems = Expr[]
for (i, v) in enumerate(tocopy.parameters)
push!(elems, create_result(v, (path..., i), result_stores))
Expand All @@ -717,7 +715,7 @@ function create_result(tocopy::Type{MakeVal{Val{elem}}}, path, result_stores) wh
end

function create_result(tocopy::Symbol, path, result_stores)
return :($(QuoteNode(tocopy)))
return Meta.quot(tocopy)
end

function create_result(tocopy::Type{MakeString{AT,Val}}, path, result_stores) where {AT,Val}
Expand Down

0 comments on commit 814cd93

Please sign in to comment.