Skip to content

Summary errors out for UnitRange{<:BigInt} #26799

Closed

Description

julia> summary(BigInt(1):BigInt(10))
ERROR: MethodError: no method matching dims2string(::Tuple{BigInt})
Closest candidates are:
  dims2string(::Tuple{Vararg{Int64,N}} where N) at show.jl:1837
Stacktrace:
 [1] summary(::Base.GenericIOBuffer{Array{UInt8,1}}, ::UnitRange{BigInt}, ::Tuple{Base.OneTo{BigInt}}) at ./show.jl:1846
 [2] summary at ./show.jl:1844 [inlined]
 [3] summary(::UnitRange{BigInt}) at ./show.jl:1831
 [4] top-level scope

show works fine though because it doesn't call summary.

I'm happy to make a PR to fix dims2string to take in <:Integer.

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

Metadata

Assignees

No one assigned

    Labels

    display and printingAesthetics and correctness of printed representations of objects.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions