typecheck: align inline method field annotations

This commit is contained in:
Hermes Agent
2026-09-15 10:34:48 +00:00
parent 9b5e7f3d90
commit 0a31646f5d
8 changed files with 36 additions and 2 deletions
+6
View File
@@ -1,5 +1,11 @@
# Changelog
### Align inline method-field annotations with class fields
- `claro typecheck` now compares an inline method assignment annotation with the class field declared by `HAS`.
- A mismatch such as `SET score TEXT 10` inside a method for `HAS score NUMBER` explains both types and suggests the class-declared type.
- Added positive and negative fixtures to the complete typecheck validation matrix.
- Added focused modern-method coverage for the learner-facing diagnostic produced when an undeclared field is assigned from an expression whose type is not inferable yet.
## Unreleased