From 7ee8e01c06b01002725d06e7421a6c0abf10a432 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas Date: Sun, 27 Jul 2025 11:56:36 -0400 Subject: [PATCH 1/2] Remove outdated Julia version check for v1.7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since Julia v1.10 is the current minimum supported version (as specified in Project.toml), the version check for Julia >= v1.7 is always true and can be removed. The code inside the conditional block is kept since it should always execute. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- test/forwarddiff_dual_detection.jl | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/test/forwarddiff_dual_detection.jl b/test/forwarddiff_dual_detection.jl index ab3badbe2..47f5786a9 100644 --- a/test/forwarddiff_dual_detection.jl +++ b/test/forwarddiff_dual_detection.jl @@ -99,14 +99,12 @@ for p in p_possibilities17 @test DiffEqBase.promote_u0([cis(u0)], p, t0) isa AbstractArray{<:Complex{<:ForwardDiff.Dual}} - if VERSION >= v"1.7" - # v1.6 does not infer `getproperty` mapping - @inferred DiffEqBase.anyeltypedual(p) - ci = InteractiveUtils.@code_typed DiffEqBase.anyeltypedual(p) - @show filter(!=(Expr(:code_coverage_effect)), ci.first.code) - #@test count(x -> (x != (Expr(:code_coverage_effect))) && - # (x != GlobalRef(DiffEqBase, :Any)), ci.first.code) == 1 - end + # v1.6 does not infer `getproperty` mapping + @inferred DiffEqBase.anyeltypedual(p) + ci = InteractiveUtils.@code_typed DiffEqBase.anyeltypedual(p) + @show filter(!=(Expr(:code_coverage_effect)), ci.first.code) + #@test count(x -> (x != (Expr(:code_coverage_effect))) && + # (x != GlobalRef(DiffEqBase, :Any)), ci.first.code) == 1 end p_possibilities_uninferrred = [ From 273e8b8c0db6d2d9de1a748a2182287a1927b0c3 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sun, 27 Jul 2025 19:42:48 -0400 Subject: [PATCH 2/2] Update test/forwarddiff_dual_detection.jl --- test/forwarddiff_dual_detection.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/test/forwarddiff_dual_detection.jl b/test/forwarddiff_dual_detection.jl index 47f5786a9..7f5134d8a 100644 --- a/test/forwarddiff_dual_detection.jl +++ b/test/forwarddiff_dual_detection.jl @@ -99,7 +99,6 @@ for p in p_possibilities17 @test DiffEqBase.promote_u0([cis(u0)], p, t0) isa AbstractArray{<:Complex{<:ForwardDiff.Dual}} - # v1.6 does not infer `getproperty` mapping @inferred DiffEqBase.anyeltypedual(p) ci = InteractiveUtils.@code_typed DiffEqBase.anyeltypedual(p) @show filter(!=(Expr(:code_coverage_effect)), ci.first.code)