From dde42a3c48b9f39be7159fe8bdd88e9f5558230a Mon Sep 17 00:00:00 2001 From: jverzani Date: Tue, 19 Jul 2022 07:29:33 -0400 Subject: [PATCH] remove module qualifier --- src/rational-functions/common.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rational-functions/common.jl b/src/rational-functions/common.jl index fb1ccbcc..f92cdc80 100644 --- a/src/rational-functions/common.jl +++ b/src/rational-functions/common.jl @@ -298,7 +298,7 @@ Base.:+(p::Number, q::AbstractRationalFunction) = q + p Base.:+(p::AbstractRationalFunction, q::Number) = p + q*one(p) Base.:+(p::AbstractPolynomial, q::AbstractRationalFunction) = q + p Base.:+(p::AbstractRationalFunction, q::AbstractPolynomial) = p + (q//one(q)) -Base.:+(p::P, q::T) where {T<:Polynomials.AbstractRationalFunction, P<:(Polynomials.StandardBasisPolynomial{T})} = throw(DomainError()) # avoid ambiguity (issue #435. +Base.:+(p::P, q::T) where {T<: AbstractRationalFunction, P<:StandardBasisPolynomial{T}} = throw(DomainError()) # avoid ambiguity (issue #435. Base.:+(p::AbstractRationalFunction, q::AbstractRationalFunction) = sum(promote(p,q)) # type should implement this function Base.:+(p::R, q::R) where {T,X,P,R <: AbstractRationalFunction{T,X,P}}