typecheck: diagnose missing CHECK TYPE expression

This commit is contained in:
Hermes Agent
2026-09-18 00:59:27 +00:00
parent b59b240f0f
commit 053aa8aa55
6 changed files with 14 additions and 2 deletions
+1
View File
@@ -77,6 +77,7 @@ Keep declared return types honest: `claro typecheck` now reports friendly diagno
8q.2. Keep `CHECK TYPE` declarations unambiguous: extra words after a valid expected type now get a direct repair hint instead of being reported as an unknown type.
8q.3. Keep `CHECK TYPE` declarations complete: a bare `CHECK TYPE` now explains that the expression, `IS`, and expected type are all required, with a complete repair example.
8q.4. Keep `CHECK TYPE` declarations ordered: `CHECK TYPE IS NUMBER` now explains that an expression belongs before `IS`, with a complete repair example.
### 1. Strong static types