typecheck: infer typed parameter return expressions

This commit is contained in:
Hermes Agent
2026-09-09 03:46:29 +00:00
parent fe5269e6bc
commit 57246c7a47
8 changed files with 21 additions and 4 deletions
+5
View File
@@ -2,6 +2,11 @@
## Unreleased
### Check typed parameter expressions in returns
- `claro typecheck` now carries a function or method parameter's `CHECK TYPE` metadata into later return-expression inference.
- Added positive and negative arithmetic return fixtures so a declared return type cannot silently accept an expression whose parameter type is already known.
### Check simple function return types
- Added `TEACH name ... RETURNS TYPE` syntax for a focused static return check.