diff --git a/test/test_nlp_expr.jl b/test/test_nlp_expr.jl index b0b1665d5d2..12132407b54 100644 --- a/test/test_nlp_expr.jl +++ b/test/test_nlp_expr.jl @@ -1015,7 +1015,7 @@ function test_convert_vector_aff_expr() @variable(model, x) @test [sin(x), x] isa Vector{NonlinearExpr} @test [sin(x), x + 1] isa Vector{NonlinearExpr} - @test [sin(x), AffExpr(x)] isa Vector{NonlinearExpr} + @test [sin(x), convert(AffExpr, x)] isa Vector{NonlinearExpr} return end