test: cover compatibility method field returns

This commit is contained in:
Hermes Agent
2026-09-14 13:47:10 +00:00
parent 110fbf8232
commit d5950a981b
7 changed files with 28 additions and 3 deletions
+1 -1
View File
@@ -593,7 +593,7 @@ This is a focused check for simple return expressions. When a parameter has a `C
Function choose declares RETURNS NUMBER but does not return a NUMBER value on every path. Add RETURN to each branch or after the conditional.
```
The focused validation matrix covers modern and compatibility syntax, method success and mismatch fixtures, unknown method return expressions, typed field returns, missing returns, and conditional-only returns. It also includes a positive nested `IF`/`ELSE` return example inside a method, so a complete nested method path is protected from regression. Full path-sensitive analysis proving that every `IF`/`ELSE` branch returns remains planned.
The focused validation matrix covers modern and compatibility syntax, including a compatibility method that returns a class-declared field, method success and mismatch fixtures, unknown method return expressions, typed field returns, missing returns, and conditional-only returns. It also includes a positive nested `IF`/`ELSE` return example inside a method, so a complete nested method path is protected from regression. Full path-sensitive analysis proving that every `IF`/`ELSE` branch returns remains planned.
## Object method parameter checks