test: cover compatibility function return tokens

This commit is contained in:
Hermes Agent
2026-09-18 21:37:24 +00:00
parent ea15117a1f
commit ede2e333fb
7 changed files with 17 additions and 3 deletions
+2
View File
@@ -286,6 +286,8 @@ Function square has extra text after return value amount. Keep only one expressi
The same focused repair applies to modern and compatibility object methods, and names the complete method such as `Player.total`.
Compatibility functions using `TAKES` / `LEARNED` receive the same repair when a return value has extra text. For example, `RETURN amount extra` reports `Function square has extra text after return value amount. Keep only one expression after RETURN.`
If a function or method declares `RETURNS TYPE` but contains no `RETURN`, the checker points out the missing statement:
```text