diff --git a/Project.toml b/Project.toml index fb976db75..df9ecfe6b 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "DiffEqBase" uuid = "2b5f629d-d688-5b77-993f-72d75c75574e" authors = ["Chris Rackauckas "] -version = "6.158.1" +version = "6.158.2" [deps] ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9" diff --git a/src/forwarddiff.jl b/src/forwarddiff.jl index 7295d7843..7318ce281 100644 --- a/src/forwarddiff.jl +++ b/src/forwarddiff.jl @@ -196,6 +196,22 @@ function anyeltypedual(::Type{<:AbstractTimeseriesSolution{T, N}}, anyeltypedual(T) end +function anyeltypedual( + ::Type{T}, + ::Type{Val{counter}} = Val{0}) where {counter} where {T <: + NonlinearProblem{ + uType, iip, pType}} where {uType, iip, pType} + return anyeltypedual((uType, pType), Val{counter}) +end + +function anyeltypedual( + ::Type{T}, + ::Type{Val{counter}} = Val{0}) where {counter} where {T <: + NonlinearLeastSquaresProblem{ + uType, iip, pType}} where {uType, iip, pType} + return anyeltypedual((uType, pType), Val{counter}) +end + function anyeltypedual(x::ForwardDiff.DiffResults.DiffResult, ::Type{Val{counter}} = Val{0}) where {counter} Any