typecheck: diagnose missing TYPE OF AS

This commit is contained in:
Hermes Agent
2026-09-18 03:02:00 +00:00
parent 053aa8aa55
commit 7f0d12ac59
6 changed files with 14 additions and 1 deletions
+1
View File
@@ -78,6 +78,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.
8q.5. Keep `TYPE OF` declarations understandable: a missing `AS` now gets a direct repair hint with a complete `TYPE OF score AS kind` example.
### 1. Strong static types