test: add object field unknown YESNO diagnostic fixture

This commit is contained in:
Hermes Agent
2026-06-25 03:05:29 -06:00
parent 2590208f19
commit ce89d65873
8 changed files with 22 additions and 6 deletions
+5
View File
@@ -1,5 +1,10 @@
# Changelog
## v1.18.26-dev object field unknown YESNO diagnostic validation
- Added a focused negative `claro typecheck` fixture for direct object-field assignment to an undeclared field with a YESNO value: `NEW Player player` followed by `SET player.ready YES` when the class only declares `HAS score NUMBER`.
- Wired the YESNO-valued unknown-field fixture into both the typecheck diagnostics validator and `claro validate`; no production typechecker change was needed because the existing narrow direct object-field diagnostic already reported the learner-friendly message.
## v1.18.26-dev object field unknown TEXT diagnostic validation
- Added a focused negative `claro typecheck` fixture for direct object-field assignment to an undeclared field with a TEXT value: `NEW Player player` followed by `SET player.nickname "Ace"` when the class only declares `HAS score NUMBER`.