Skip to content

Method ambiguities on 0.7 #346

Open
Open
@ararslan

Description

@ararslan

Seen on Travis:

Standard Deviation: Error During Test at /home/travis/.julia/v0.7/StatsBase/test/moments.jl:27
  Test threw an exception of type MethodError
  Expression: std(x, wv; corrected=false) ≈ expected_std
  MethodError: getfield(Base, Symbol("#kw##std"))()(::NamedTuple{(:corrected,),Tuple{Bool}}, ::typeof(std), ::Array{Float64,1}, ::Weights{Float64,Float64,Array{Float64,1}}) is ambiguous. Candidates:
    (::getfield(Base, Symbol("#kw##std")))(::Any, ::typeof(std), v::AbstractArray{T,N} where N where T<:Real, w::AbstractWeights) in StatsBase
    (::getfield(Base, Symbol("#kw##std")))(::Any, ::typeof(std), A::AbstractArray{#s538,N} where N where #s538<:AbstractFloat, region) in Base
  Possible fix, define
    (::getfield(Base, Symbol("#kw##std")))(::Any, ::typeof(std), ::AbstractArray{#s538,N} where N where #s538<:AbstractFloat, ::AbstractWeights)
  Stacktrace:
   [1] macro expansion at /home/travis/.julia/v0.7/StatsBase/test/moments.jl:27 [inlined]
   [2] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/site/v0.7/Test/src/Test.jl:1008 [inlined]
   [3] macro expansion at /home/travis/.julia/v0.7/StatsBase/test/moments.jl:27 [inlined]
   [4] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/site/v0.7/Test/src/Test.jl:1080 [inlined]
   [5] macro expansion at /home/travis/.julia/v0.7/StatsBase/test/moments.jl:13 [inlined]
   [6] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/site/v0.7/Test/src/Test.jl:1008 [inlined]
   [7] top-level scope at /home/travis/.julia/v0.7/StatsBase/test/moments.jl:6

That's one of a few things that are failing, all related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions