Skip to content

Commit

Permalink
Force specialization on mutable operate (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat authored Oct 12, 2021
1 parent 4462827 commit 1bdf2b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ end
Modify the value of `args[1]` to be equal to the value of `op(args...)`. Can
only be called if `mutability(args[1], op, args...)` returns `true`.
"""
function mutable_operate!(op::Function, args::Vararg{Any,N}) where {N}
function mutable_operate!(op::F, args::Vararg{Any,N}) where {F<:Function,N}
mutable_operate_fallback(mutability(args[1], op, args...), op, args...)
end

Expand Down

0 comments on commit 1bdf2b6

Please sign in to comment.