Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redefined tables are allowed when dotted tables exist. #509

Closed
ehuss opened this issue Feb 6, 2023 · 0 comments · Fixed by #510
Closed

Redefined tables are allowed when dotted tables exist. #509

ehuss opened this issue Feb 6, 2023 · 0 comments · Fixed by #510

Comments

@ehuss
Copy link
Contributor

ehuss commented Feb 6, 2023

The following TOML:

[dependencies.foo]
version = "0.16"

[dependencies]
libc = "0.2"

[dependencies]
rand = "0.3.14"

seems to parse by the new toml implementation when it probably shouldn't. The [dependencies] table is defined twice, which goes against the spec per:

Like keys, you cannot define a table more than once. Doing so is invalid.

This was previously rejected in toml 0.5.

Using toml 0.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant