Skip to content

Static type conversion with Bool #91

Closed
@oschulz

Description

@oschulz

We currently have

julia> promote(static(5), static(true))
(5, 1)

julia> promote(static(true), true)
(static(true), static(true))

julia> promote(static(true), static(true))
(static(true), static(true))

julia> promote(static(true), true)
(static(true), static(true))

Is this deliberate, or some unintended effect? It seems weird that we promote static integer and static bool to non-static, and promote static integer and non-static bool to static.

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