From 30c86bd2d1608e79a526504de4da63f9c5533222 Mon Sep 17 00:00:00 2001 From: Mark Kittisopikul Date: Fri, 10 May 2024 04:00:39 -0400 Subject: [PATCH] Fix static if --- test/chainedvector.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/chainedvector.jl b/test/chainedvector.jl index 951201c..d1c0e2a 100644 --- a/test/chainedvector.jl +++ b/test/chainedvector.jl @@ -526,7 +526,7 @@ end @test minimum(x) == minimum(y) @test argmax(x) == argmax(y) @test argmin(x) == argmin(y) - @static VERSION ≥ v"1.6" + @static if VERSION ≥ v"1.6" @test findmax(x->x+1, x) == findmax(x->x+1, y) @test findmin(x->x-1, x) == findmin(x->x-1, y) @test findfirst(isodd, x) == findfirst(isodd, y)