fix(decode): let the later field win an equal-depth name clash

Assisted-by: GLM 5.3
This commit is contained in:
2026-09-17 23:07:27 +02:00
parent 54c6032a9a
commit bb238c98c3
3 changed files with 19 additions and 1 deletions
+2
View File
@@ -58,6 +58,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
is not valid UTF-8, the way scalar keys already did, instead of silently
emitting corrupt TOML (a header that lost its key, an inline table with a
missing key).
- Struct fields that resolve to one key at equal depth decode through the
field declared later, matching the documented rule; the first one won before.
- A float with an exponent marker but no digits (`1e`, `0.0E`) is rejected;
the exponent requires at least one digit.
- A date-time offset outside 00:00 through 23:59 is rejected; such offsets