Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector{Pair} - display errors for element type Pair{Any,Vector} #25466

Closed
KlausC opened this issue Jan 9, 2018 · 0 comments
Closed

Vector{Pair} - display errors for element type Pair{Any,Vector} #25466

KlausC opened this issue Jan 9, 2018 · 0 comments
Labels
bug Indicates an unexpected problem or unintended behavior display and printing Aesthetics and correctness of printed representations of objects. regression Regression in behavior compared to a previous version

Comments

@KlausC
Copy link
Contributor

KlausC commented Jan 9, 2018

julia> pairs = Vector{Pair}()
0-element Array{Pair,1}

julia> push!(pairs, ""=>[1])
1-element Array{Pair,1}:
Error showing value of type Array{Pair,1}:
ERROR: AssertionError: Array{Int64,1} is not a subtype of Pair
Stacktrace:
 [1] typeinfo_prefix(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Array{Int64,1}) at ./arrayshow.jl:480
 [2] show_vector(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Array{Int64,1}, ::Char, ::Char) at ./arrayshow.jl:433 (repeats 2 times)
 [3] show at ./arrayshow.jl:447 [inlined]
 [4] show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Pair{String,Array{Int64,1}}) at ./show.jl:424

julia> pairs[1]
"" => [1]
@JeffBezanson JeffBezanson added display and printing Aesthetics and correctness of printed representations of objects. bug Indicates an unexpected problem or unintended behavior labels Jan 9, 2018
@JeffBezanson JeffBezanson added this to the 1.0.x milestone Jan 11, 2018
@JeffBezanson JeffBezanson added the regression Regression in behavior compared to a previous version label Feb 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior display and printing Aesthetics and correctness of printed representations of objects. regression Regression in behavior compared to a previous version
Projects
None yet
Development

No branches or pull requests

2 participants