Debian Codegraph @

internal/toml-test/tests/valid/array/mixed-string-table.toml

raw
1 contributors = [
2 "Foo Bar <[email protected]>",
3 { name = "Baz Qux", email = "[email protected]", url = "https://example.com/bazqux" }
4 ]
5
6 # Start with a table as the first element. This tests a case that some libraries
7 # might have where they will check if the first entry is a table/map/hash/assoc
8 # array and then encode it as a table array. This was a reasonable thing to do
9 # before TOML 1.0 since arrays could only contain one type, but now it's no
10 # longer.
11 mixed = [{k="a"}, "b", 1]