Skip to content

Commit

Permalink
Merge pull request #507 from JuliaSymbolics/myb/def
Browse files Browse the repository at this point in the history
Fix double definition
  • Loading branch information
YingboMa authored Feb 6, 2023
2 parents 987763f + 41ab82c commit eecf6e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/methods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ function number_methods(T, rhs1, rhs2, options=nothing)

for f in (skip_basics ? monadic : only_basics ? basic_monadic : vcat(basic_monadic, monadic))
nameof(f) in skips && continue
push!(exprs, :((f::$(typeof(f)))(a::$T) = $rhs1))
if f === isfinite
push!(exprs, :((f::$(typeof(f)))(a::$T) = true))
else
push!(exprs, :((f::$(typeof(f)))(a::$T) = $rhs1))
end
end
push!(exprs, :(push!($previously_declared_for, $T)))
Expand Down

0 comments on commit eecf6e0

Please sign in to comment.