typecheck: reject unknown expected types

This commit is contained in:
Hermes Agent
2026-09-08 17:26:47 +00:00
parent 8c3c898af7
commit c44db0bb16
6 changed files with 15 additions and 2 deletions
+7
View File
@@ -126,6 +126,13 @@ SAY kind
CHECK TYPE score IS NUMBER
```
`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
CHECK TYPE score IS BANANA
CHECK TYPE needs a known type such as NUMBER, TEXT, YESNO, LIST, or MAP, but BANANA is not a Claro type.
```
Advanced container checks are available through `claro typecheck`:
```claro