From 41ab82cf9d84de92652686fe09ed7c5b3932aa8d Mon Sep 17 00:00:00 2001 From: Yingbo Ma Date: Mon, 6 Feb 2023 15:18:34 -0500 Subject: [PATCH] Fix double definition --- src/methods.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/methods.jl b/src/methods.jl index 611a77dd4..66d4770ca 100644 --- a/src/methods.jl +++ b/src/methods.jl @@ -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)))