typecheck: validate simple function returns

This commit is contained in:
Hermes Agent
2026-09-08 19:31:29 +00:00
parent c44db0bb16
commit 8fe57974c6
9 changed files with 51 additions and 6 deletions
+6
View File
@@ -2,6 +2,12 @@
## Unreleased
### Check simple function return types
- Added `TEACH name ... RETURNS TYPE` syntax for a focused static return check.
- `claro typecheck` now reports the expected and inferred types when a `RETURN` expression does not match.
- Added positive and negative fixtures and wired both into `claro validate` and the complete typecheck diagnostics validator.
### Diagnose explicitly typed unknown object fields
- Added focused typecheck coverage for `SET player.level NUMBER 3` when `Player` declares no `level` field.