Skip to content

misleading printing of value type parameters #57189

@nsajko

Description

@nsajko

Int32(7) in Val{Int32(7)} is shown as a mere 7:

julia> Val{Int32(7)}
Val{7}

That's not correct, however, given that Val{Int32(7)} != Val{7}.

The misleading printing behavior leads to confusion and complaints such as this one: JuliaArrays/StaticArrays.jl#1233

Metadata

Metadata

Assignees

No one assigned

    Labels

    display and printingAesthetics and correctness of printed representations of objects.types and dispatchTypes, subtyping and method dispatch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions