Skip to content

Commit c420487

Browse files
authored
tweak creation of initial array in toml parser to work around accidental type piracy in packages (#38511)
1 parent b166d0d commit c420487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/toml_parser.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ end
675675

676676
function parse_array(l::Parser)::Err{Vector}
677677
skip_ws_nl(l)
678-
array = Union{}[]
678+
array = Vector{Union{}}()
679679
empty_array = accept(l, ']')
680680
while !empty_array
681681
v = @try parse_value(l)

0 commit comments

Comments
 (0)