Skip to content

Commit

Permalink
test: fix JET error
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Dec 26, 2024
1 parent 46f401b commit 307c37e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/TemplateExpression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ function EB.extra_init_params(
if prototype === nothing
ParamVector(randn(T, (num_parameters,)))
else
copy(get_metadata(prototype).parameters)
copy(get_metadata(prototype).parameters::ParamVector)
end
end
# We also need to include the operators here to be consistent with `create_expression`.
Expand Down
1 change: 0 additions & 1 deletion test/test_parametric_template_expressions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ end
new_params = get_metadata(mutated_expr).parameters._data
if new_params != old_params
param_changed = true
break
end
end
@test param_changed == true
Expand Down

0 comments on commit 307c37e

Please sign in to comment.