Skip to content

Failure to parse homogeneous arrays with strict_arrays enabled #10

@oschwald

Description

@oschwald

When strict_arrays are enabled, parsing of some homogeneous arrays fails with unexpected type errors. For instance, parsing:

[test]
array = ["u", "u2"]

Fails with:

toml parse error at line EOF: expected value of type string, but found integer

Given that TOML 1.0 now supports heterogeneous arrays, it might make sense to remove strict_arrays altogether. However, this issue may point to a more general problem with the type detection.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions