test: cover compatibility missing return types

This commit is contained in:
Hermes Agent
2026-09-18 13:20:00 +00:00
parent df3c57415d
commit e17f450603
6 changed files with 16 additions and 2 deletions
+2
View File
@@ -190,6 +190,8 @@ If `RETURNS` is present without a type, `claro typecheck` explains what is missi
Function greet needs a return type after RETURNS. Add a type such as NUMBER.
```
The same missing-type check covers the older `TEACH ... TAKES ... RETURNS` / `LEARNED` spelling, so compatibility lessons receive the same repair instead of silently accepting an incomplete return declaration.
The same repair applies to object methods and older compatibility methods, and names the class so the learner can find the declaration:
```text