Skip to content

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

@kmsquire

Description

@kmsquire

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions