test: cover extra return tokens in methods

This commit is contained in:
Hermes Agent
2026-09-18 19:33:51 +00:00
parent ebfa3aa52e
commit ea15117a1f
6 changed files with 22 additions and 1 deletions
+2
View File
@@ -284,6 +284,8 @@ END
Function square has extra text after return value amount. Keep only one expression after RETURN.
```
The same focused repair applies to modern and compatibility object methods, and names the complete method such as `Player.total`.
If a function or method declares `RETURNS TYPE` but contains no `RETURN`, the checker points out the missing statement:
```text