typecheck: reject extra TYPE OF tokens

This commit is contained in:
Hermes Agent
2026-09-18 05:05:35 +00:00
parent 7f0d12ac59
commit 3a9e3d0a8c
6 changed files with 15 additions and 2 deletions
+1
View File
@@ -79,6 +79,7 @@ Keep declared return types honest: `claro typecheck` now reports friendly diagno
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.
8q.6. Keep `TYPE OF` declarations unambiguous: extra words after the result name now get a direct repair hint instead of being silently included in the variable name.
### 1. Strong static types