test: cover method return division diagnostics

This commit is contained in:
Hermes Agent
2026-09-12 01:58:25 +00:00
parent 45a323e45b
commit 3443fb7589
5 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -228,7 +228,7 @@ SET player.score player.score * 2
The focused validation matrix keeps this valid arithmetic case beside the multiplication text-operand diagnostic, so a useful expression is not confused with the nearby beginner mistake.
The expression checker now gives operator-specific guidance for known TEXT operands in subtraction, multiplication, and division. Broader expression inference remains future work.
The expression checker now gives operator-specific guidance for known TEXT operands in subtraction, multiplication, and division, including typed method return expressions. Broader expression inference remains future work.
Text concatenation is also accepted when the result is assigned to a TEXT field. This keeps a common beginner pattern type-safe without treating every `+` expression as numeric: