typecheck: clarify missing CHECK TYPE expression

This commit is contained in:
Hermes Agent
2026-09-17 22:54:48 +00:00
parent cd92a04303
commit b59b240f0f
6 changed files with 15 additions and 3 deletions
+7 -1
View File
@@ -141,12 +141,18 @@ SAY kind
CHECK TYPE score IS NUMBER
```
`CHECK TYPE` also gives a direct repair hint when `IS` is missing:
`CHECK TYPE` gives a direct repair hint when `IS` is missing:
```text
CHECK TYPE needs IS. Try: CHECK TYPE score IS NUMBER.
```
If the learner leaves out the expression as well, the checker explains all three required parts:
```text
CHECK TYPE needs an expression, IS, and a type. Try: CHECK TYPE score IS NUMBER.
```
If the learner writes `IS` but leaves out the expected type, Claro names the missing piece and shows a complete example:
```text