Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/demos/forwarddiffzero.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function define_dual_overload(sig)
opT, argTs = Iterators.peel(sig.parameters)
opT isa Type{<:Type} && return # not handling constructors
fieldcount(opT) == 0 || return # not handling functors
all(Float64 <: argT for argT in argTs) || return # only handling purely Float64 ops.
all(argT isa Type && Float64 <: argT for argT in argTs) || return # only handling purely Float64 ops.

N = length(sig.parameters) - 1 # skip the op
fdef = quote
Expand Down
2 changes: 1 addition & 1 deletion test/demos/reversediffzero.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function define_tracked_overload(sig)
opT, argTs = Iterators.peel(sig.parameters)
opT isa Type{<:Type} && return # not handling constructors
fieldcount(opT) == 0 || return # not handling functors
all(Float64 <: argT for argT in argTs) || return # only handling purely Float64 ops.
all(argT isa Type && Float64 <: argT for argT in argTs) || return # only handling purely Float64 ops.

N = length(sig.parameters) - 1 # skip the op
fdef = quote
Expand Down