Skip to content

Commit eecf6e0

Browse files
authored
Merge pull request #507 from JuliaSymbolics/myb/def
Fix double definition
2 parents 987763f + 41ab82c commit eecf6e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/methods.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@ function number_methods(T, rhs1, rhs2, options=nothing)
7777

7878
for f in (skip_basics ? monadic : only_basics ? basic_monadic : vcat(basic_monadic, monadic))
7979
nameof(f) in skips && continue
80-
push!(exprs, :((f::$(typeof(f)))(a::$T) = $rhs1))
8180
if f === isfinite
8281
push!(exprs, :((f::$(typeof(f)))(a::$T) = true))
82+
else
83+
push!(exprs, :((f::$(typeof(f)))(a::$T) = $rhs1))
8384
end
8485
end
8586
push!(exprs, :(push!($previously_declared_for, $T)))

0 commit comments

Comments
 (0)