feat: improve object field type diagnostics

This commit is contained in:
Hermes Agent
2026-06-12 03:07:42 -06:00
parent 5edb915668
commit 2636d2ab8c
8 changed files with 63 additions and 8 deletions
+6
View File
@@ -1,5 +1,11 @@
# Changelog
## v1.18.26-dev object field assignment diagnostics
- Added a narrow `claro typecheck` diagnostic for direct wrong-type object field assignment after `NEW Class object`, such as `SET player.score "ten"` when `HAS score NUMBER` is known.
- Wired the new negative fixture into typecheck validation while keeping the existing object method positive/negative checks and object-field runtime fixture green.
- Documented the narrow object-field diagnostic scope in beginner-facing status and static typing docs.
## v1.18.26-dev object method parameter diagnostics
- Extended the narrow `CHECK TYPE` argument diagnostic foundation to simple object methods such as `DO player.add "five"` when `player` was created with `NEW Player player`.