Lint.jl
Lint.jl copied to clipboard
Non-IO show calls in show overload
I make this mistake a lot:
Base.show(io::IO, x::MyType) = print(x.data)
Note that should have been print(io, x.data)
. We could warn when an IO function called within a show
overload does not seem to have the IO object as its first argument.