typecheck: diagnose empty typed returns

This commit is contained in:
Hermes Agent
2026-09-09 07:54:19 +00:00
parent 465f3f4d26
commit 257a4644ad
8 changed files with 25 additions and 4 deletions
+5
View File
@@ -2,6 +2,11 @@
## Unreleased
### Diagnose empty typed returns
- `claro typecheck` now reports a beginner-facing error when a function or method declares `RETURNS TYPE` but uses `RETURN` without a value.
- Added a focused negative fixture and release-validation coverage for the missing return expression.
### Check typed parameter expressions in returns
- `claro typecheck` now carries a function or method parameter's `CHECK TYPE` metadata into later return-expression inference.