Importing SciMLBase
has side-effects on Base.Math.throw_complex_domainerror
#606
Labels
bug
Something isn't working
Open a fresh julia session in a clean (temporary) environment. Then:
Then,
Because
log
is being called outside of the context of any SciML package, I would expect the normal error message to be thrown.One thing that confuses me a bit is that, by behaviour, the
Base.Math.throw_complex_domainerror
function appears to have been piratically redefined:... and yet Julia only claims that one method exists, with the standard implementation:
Even using e.g.
@code_lowered Base.Math.throw_complex_domainerror(:moo, 1)
shows the standard implementation, not what actually gets called.Observed in Julia 1.10, and
SciMLBase
2.21.0.Additional context
This error caused a little confusion for me, as I assumed that it was coming from within a SciML function call -- in fact it was just a call to
log
in some other code I had written. But I happened to have an indirect dependency on SciMLBase, causing the above to occur.The text was updated successfully, but these errors were encountered: