Skip to content

fix method ambiguities #95

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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