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

Decoding empty inline table gives wrong result #38

Open
shaolang opened this issue Jan 24, 2024 · 1 comment
Open

Decoding empty inline table gives wrong result #38

shaolang opened this issue Jan 24, 2024 · 1 comment

Comments

@shaolang
Copy link

Toml.decode!/2 parses the following as %{"a" => %{"b" => 1}}:

a = {}
b = 1

The expected is %{"a" => %{}, "b" => 1}.

This might be related to issue #37. tomerl and TOML libraries from other languages corroborate the expected value.

@jvantuyl
Copy link

I think I may have fixed this inadvertently with #41.

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

No branches or pull requests

2 participants