File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ function define_dual_overload(sig)
3232 opT, argTs = Iterators. peel (sig. parameters)
3333 opT isa Type{<: Type } && return # not handling constructors
3434 fieldcount (opT) == 0 || return # not handling functors
35- all (Float64 <: argT for argT in argTs) || return # only handling purely Float64 ops.
35+ all (argT isa Type && Float64 <: argT for argT in argTs) || return # only handling purely Float64 ops.
3636
3737 N = length (sig. parameters) - 1 # skip the op
3838 fdef = quote
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ function define_tracked_overload(sig)
6161 opT, argTs = Iterators. peel (sig. parameters)
6262 opT isa Type{<: Type } && return # not handling constructors
6363 fieldcount (opT) == 0 || return # not handling functors
64- all (Float64 <: argT for argT in argTs) || return # only handling purely Float64 ops.
64+ all (argT isa Type && Float64 <: argT for argT in argTs) || return # only handling purely Float64 ops.
6565
6666 N = length (sig. parameters) - 1 # skip the op
6767 fdef = quote
You can’t perform that action at this time.
0 commit comments