Skip to content

fix method ambiguities #95

Open
Open
@kuszmaul

Description

@kuszmaul
julia> using FixedPointDecimals
julia> using Aqua
julia> Aqua.test_all(FixedPointDecimals)
13 ambiguities found. To get a list, set `broken = false`.
Ambiguity #1
(::Type{T})(x::FixedPointDecimals.FixedDecimal) where T<:Union{AbstractFloat, Integer, Rational} @ FixedPointDecimals ~/.julia/packages/FixedPointDecimals/SHo3T/src/FixedPointDecimals.jl:521
Bool(x::Real) @ Base float.jl:171

Possible fix, define
  Bool(::FixedPointDecimals.FixedDecimal)
...

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