Skip to content

Commit 0be05ce

Browse files
Merge pull request #1144 from SciML/anytypedual_dict
Better handle dictionaries in anytypedual
2 parents 4f0e17e + 3906495 commit 0be05ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/DiffEqBaseForwardDiffExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ function anyeltypedual(x::Tuple, ::Type{Val{counter}} = Val{0}) where {counter}
435435
diffeqmapreduce(anyeltypedual, promote_dual, x)
436436
end
437437
end
438-
function anyeltypedual(x::Dict, ::Type{Val{counter}} = Val{0}) where {counter}
438+
function anyeltypedual(x::AbstractDict, ::Type{Val{counter}} = Val{0}) where {counter}
439439
isempty(x) ? eltype(values(x)) : mapreduce(anyeltypedual, promote_dual, values(x))
440440
end
441441
function anyeltypedual(x::NamedTuple, ::Type{Val{counter}} = Val{0}) where {counter}

0 commit comments

Comments
 (0)