typecheck: diagnose missing CHECK TYPE expression

This commit is contained in:
Hermes Agent
2026-09-18 00:59:27 +00:00
parent b59b240f0f
commit 053aa8aa55
6 changed files with 14 additions and 2 deletions
+6
View File
@@ -153,6 +153,12 @@ If the learner leaves out the expression as well, the checker explains all three
CHECK TYPE needs an expression, IS, and a type. Try: CHECK TYPE score IS NUMBER.
```
If `IS` is present but the expression is missing, Claro points out that the expression belongs before `IS`:
```text
CHECK TYPE needs an expression before IS. 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