typecheck: diagnose unknown return types

This commit is contained in:
Hermes Agent
2026-09-09 09:58:07 +00:00
parent 257a4644ad
commit e4859e82d5
7 changed files with 20 additions and 3 deletions
+5
View File
@@ -2,6 +2,11 @@
## Unreleased
### Diagnose unknown declared return types
- `claro typecheck` now reports a learner-facing error when a function or object method declares an unsupported `RETURNS` type such as `BANANA`.
- Added focused negative-fixture coverage and release-validator coverage for the invalid declaration.
### 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.