Skip to content

Commit 750c096

Browse files
committed
Fix ambiguity error
1 parent 8fccedb commit 750c096

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/algorithms.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ macro functiondef(f)
196196
@inline function default_algorithm(::typeof($f), A; kwargs...)
197197
return default_algorithm($f!, A; kwargs...)
198198
end
199+
# fix ambiguity error
200+
@inline function default_algorithm(::typeof($f), ::Type{A}; kwargs...) where {A}
201+
return default_algorithm($f!, A; kwargs...)
202+
end
199203

200204
# copy documentation to both functions
201205
Core.@__doc__ $f, $f!

0 commit comments

Comments
 (0)