Skip to content

Commit

Permalink
remove module qualifier
Browse files Browse the repository at this point in the history
  • Loading branch information
jverzani committed Jul 19, 2022
1 parent a7b4cc2 commit dde42a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rational-functions/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit dde42a3

Please sign in to comment.