Open jishnub opened 5 months ago
Thanks for letting me know!
Note that there are other instances like https://github.com/JuliaMath/Polynomials.jl/blob/263b965ba2b5c6cec7b48aa4d760658707fba1c4/src/rational-functions/common.jl#L52-L64 where the convert
explicitly uses Polynomial
, which may not be the correct type
Yes, that one was deliberate. Perhaps it should just be deprecated and the user should convert to a polynomial type without negative powers before using.
Thanks again! I really appreciate your time and effort to point these out.
Julia nightly demands that
convert(T, x)
produce a result of typeT
. This is currently not the case withRationalPolynomials
, wherepromote_rule
at various places hard-codesPolynomial
instead of using a proper promotion. As a consequence, the following is broken (and tests fail on Julia nightly in general):