git.sr.ht/~pingoo/stdx@v0.0.0-20240218134121-094174641f6e/toml/internal/toml-test/tests/invalid/table/array-implicit.toml (about) 1 # This test is a bit tricky. It should fail because the first use of 2 # `[[albums.songs]]` without first declaring `albums` implies that `albums` 3 # must be a table. The alternative would be quite weird. Namely, it wouldn't 4 # comply with the TOML spec: "Each double-bracketed sub-table will belong to 5 # the most *recently* defined table element *above* it." 6 # 7 # This is in contrast to the *valid* test, table-array-implicit where 8 # `[[albums.songs]]` works by itself, so long as `[[albums]]` isn't declared 9 # later. (Although, `[albums]` could be.) 10 [[albums.songs]] 11 name = "Glory Days" 12 13 [[albums]] 14 name = "Born in the USA"