JuliaMath / JuliaMath/MeasureBase.jl

`UnknownMass` called with bad argument

Open
#132 1 comment 0 reactions 1 assignee Claimed by @cscherrer View on GitHub
Dominant language
Julia
Stars
32
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Currently (v0.14.7) we have
```julia
massof(m::AbstractMeasure) = UnknownMass(m)
```

But there's no such method:
```julia
julia> methods(MeasureBase.UnknownMass)
# 4 methods for type constructor:
[1] MeasureBase.UnknownMass()
@ ~/git/MeasureBase.jl/src/mass-interface.jl:19
[2] (::Type{T})(x::AbstractChar) where T<:Union{AbstractChar, Number}
@ Base char.jl:50
[3] (::Type{T})(x::T) where T<:Number
@ Core boot.jl:792
[4] (::Type{T})(x::Base.TwicePrecision) where T<:Number
@ Base twiceprecision.jl:266
```

I think this should be
```julia
massof(m::AbstractMeasure) = UnknownMass()
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.