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
Duplicate key allowed in inline table #658
Comments
Once this is fixed, we can regen the toml-test files to include toml-lang/toml-test#93. |
Started working on this, but realized there is some part of the spec that is unclear to me: toml-lang/toml#848 (comment). Let me know if you have any thoughts on how we should handle dotted keys in inline tables! |
My take:
|
👍🏻 Went with that interpretation until they chime in. |
Regenerated the toml-test files to include the new test. Let me know if i've missed anything. |
Describe the bug
Given
e={b=1,b=4}
, go-toml returns the following (usinggotoml-test-decoder
):To Reproduce
https://play.golang.org/p/by7ih3epoCp
Expected behavior
I expected an error. The TOML spec says:
BurntSushi returns an error of
Key 'e.b' has already been defined
.Versions
Additional context
Found while doing differential fuzzing against BurntSushi.
The text was updated successfully, but these errors were encountered: