This is a common error for interactive development:
julia> struct MyType a end julia> isapprox(a::MyType, b::MyType) = abs(a.a-a.b) ≤ 10 # FORGOT TO IMPORT isapprox (generic function with 1 method) julia> import Base.isapprox # SO LET'S MAKE UP FOR IT WARNING: import of Base.isapprox into Main conflicts with an existing identifier; ignored.
In Common Lisp, this is handled by
I wonder if it would be possible to do something similar for Julia. Strictly for interactive development. The only remedy I know of is restarting (and of course not doing development in
Main, but that just happens).