Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

searchsorted* with kwargs produces overwritten warning; at-which can't find def #19694

Closed
kmsquire opened this issue Dec 23, 2016 · 2 comments
Closed

Comments

@kmsquire
Copy link
Member

While building (e.g., from https://travis-ci.org/JuliaLang/julia/jobs/186247003#L873-L875):

WARNING: Method definition searchsortedfirst(AbstractArray{T<:Any, 1}, Any) in module Sort at sort.jl:198 overwritten at sort.jl:201.
WARNING: Method definition searchsortedlast(AbstractArray{T<:Any, 1}, Any) in module Sort at sort.jl:198 overwritten at sort.jl:201.
WARNING: Method definition searchsorted(AbstractArray{T<:Any, 1}, Any) in module Sort at sort.jl:198 overwritten at sort.jl:201.

@which cannot find the function either, (it should be the version at sort.jl:198), although the function call does work:

julia> searchsorted([3,2,1], 1.5, rev=true)
3:2

julia> @which searchsorted([3,2,1], 1.5, rev=true)
(::Base.Sort.#kw##searchsorted)(::Array{Any,1}, ::Base.Sort.#searchsorted, v::AbstractArray{T<:Any,1}, x) in Base.Sort

julia> @which searchsorted([1,2,3], 1.5)
searchsorted(v::AbstractArray{T<:Any,1}, x) in Base.Sort at sort.jl:201

Version info:

julia> versioninfo()
Julia Version 0.6.0-dev.1671
Commit 44d7677* (2016-12-23 05:10 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, haswell)

Note that this issue existed before #17057 was merged, although I haven't bisected (and don't really have time to right now).

@tkelman
Copy link
Contributor

tkelman commented Dec 23, 2016

#18728 and #19604

@kmsquire
Copy link
Member Author

Ok, thanks. I remember seeing those now. The at-which error is just fallout, I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants