mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 17:58:09 +08:00

current code mistakenly allows the following TOML file. ```toml a.b = 42 # table "a" is defined here, implicitly a = {c = 3.14} # table "a" is overwritten here ``` But we need to allow the following (structually similar) TOML file. ```toml a.b = 42 # table "a" is defined here, implicitly a.c = 3.14 # table "a" is merged with {c = 3.14} ``` To distinguish those, we check whether the current table is defined as an inline table or via dotted key. If the table we are inserting is defined via dotted key, we accept it and merge the table. If the table being inserted is defined as an inline table, then we report an error.