typecheck: clarify missing expected type

This commit is contained in:
Hermes Agent
2026-09-17 20:50:14 +00:00
parent 9b26a854e2
commit cd92a04303
7 changed files with 22 additions and 2 deletions
+6
View File
@@ -147,6 +147,12 @@ CHECK TYPE score IS NUMBER
CHECK TYPE needs 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
CHECK TYPE score needs a type after IS. Try: CHECK TYPE score IS NUMBER.
```
If extra words follow the expected type, `claro typecheck` explains that only one type belongs there:
```text