This doesn’t look right to me – looks like methods in Base
are not automatically loaded until something triggers that, leading to inconsistent behaviour.
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.0.0 (2018-08-08)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> function fetch(u)
# code
end
fetch (generic function with 1 method)
And in a new session:
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.0.0 (2018-08-08)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> fetch
fetch (generic function with 5 methods)
julia> function fetch(u)
# code
end
ERROR: error in method definition: function Base.fetch must be explicitly imported to be extended
Stacktrace:
[1] top-level scope at none:0