typecheck: clarify extra CHECK TYPE tokens

This commit is contained in:
Hermes Agent
2026-09-17 18:46:36 +00:00
parent 1204731785
commit 9b26a854e2
6 changed files with 16 additions and 1 deletions
+7
View File
@@ -147,6 +147,13 @@ CHECK TYPE score IS NUMBER
CHECK TYPE needs IS. Try: CHECK TYPE score IS NUMBER.
```
If extra words follow the expected type, `claro typecheck` explains that only one type belongs there:
```text
CHECK TYPE score IS NUMBER TEXT
CHECK TYPE score has extra text after type NUMBER. Keep only the expression, IS, and one type.
```
`CHECK TYPE` names a real Claro type. If a type name is misspelled, the checker explains the allowed beginner types instead of reporting a confusing value mismatch:
```text