From 307c37ec5dbf2c0da141608a4e52b851cc99b78a Mon Sep 17 00:00:00 2001 From: MilesCranmer Date: Wed, 25 Dec 2024 22:35:03 -0500 Subject: [PATCH] test: fix JET error --- src/TemplateExpression.jl | 2 +- test/test_parametric_template_expressions.jl | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/TemplateExpression.jl b/src/TemplateExpression.jl index cc88205a..8fc017c7 100644 --- a/src/TemplateExpression.jl +++ b/src/TemplateExpression.jl @@ -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`. diff --git a/test/test_parametric_template_expressions.jl b/test/test_parametric_template_expressions.jl index 405377c8..5e2d17ff 100644 --- a/test/test_parametric_template_expressions.jl +++ b/test/test_parametric_template_expressions.jl @@ -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