Skip to content

Julia v1.12 warning: type "Bool" was extended without explicit qualification or import. #119

Open
@inkydragon

Description

@inkydragon

Just add this Pkg in Julia v1.12:

┌ FixedPointDecimals
│  WARNING: Constructor for type "Bool" was extended in `FixedPointDecimals` without explicit qualification or import.
│    NOTE: Assumed "Bool" refers to `Base.Bool`. This behavior is deprecated and may differ in future versions.`
│    NOTE: This behavior may have differed in Julia versions prior to 1.12.
│    Hint: If you intended to create a new generic function of the same name, use `function Bool end`.
│    Hint: To silence the warning, qualify `Bool` as `Base.Bool` in the method signature or explicitly `import Base: Bool`.

# Need to avoid ambiguity:
Bool(x::FD) = convert(Bool, x)

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