test: cover compatibility numeric method field assignment

This commit is contained in:
Hermes Agent
2026-09-14 17:54:21 +00:00
parent 34ed60cbe8
commit 45fecc375a
6 changed files with 19 additions and 3 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ The diagnostic is:
Object Player has no field level. Check the field name or add HAS level NUMBER to the class.
```
This narrow check covers direct method assignments with a known expression in both modern `TEACH ... END` and compatibility `TEACH ... TAKES ... LEARNED` methods. Broader local-variable and control-flow analysis remains future work.
This narrow check covers direct method assignments with a known expression in both modern `TEACH ... END` and compatibility `TEACH ... TAKES ... LEARNED` methods. The focused validation matrix also keeps a correct compatibility NUMBER assignment such as `SET score amount + 1` covered, alongside the existing TEXT and YESNO compatibility examples. Broader local-variable and control-flow analysis remains future work.
## Complete conditional returns