Skip to content

Support AbstractFloat(::StaticBool) #50

@oschulz

Description

@oschulz

I ran into

julia> log(static(true))
ERROR: MethodError: no method matching AbstractFloat(::True)

Since Base supports AbstractFloat(::Bool) I think it would make sense to support AbstractFloat(::StaticBool) as well.

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