Skip to content

Commit

Permalink
tweak creation of initial array in toml parser to work around acciden…
Browse files Browse the repository at this point in the history
…tal type piracy in packages (#38511)
  • Loading branch information
KristofferC authored Nov 22, 2020
1 parent b166d0d commit c420487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/toml_parser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ end

function parse_array(l::Parser)::Err{Vector}
skip_ws_nl(l)
array = Union{}[]
array = Vector{Union{}}()
empty_array = accept(l, ']')
while !empty_array
v = @try parse_value(l)
Expand Down

0 comments on commit c420487

Please sign in to comment.