test: cover method return multiplication diagnostics

This commit is contained in:
Hermes Agent
2026-09-12 04:01:22 +00:00
parent 3443fb7589
commit a6d93a195a
6 changed files with 26 additions and 3 deletions
@@ -0,0 +1,8 @@
CLASS Player
HAS score NUMBER
TEACH total amount RETURNS NUMBER
CHECK TYPE amount IS NUMBER
RETURN amount * "oops"
END
END
@@ -0,0 +1,11 @@
CLASS Player
HAS score NUMBER
TEACH total amount RETURNS NUMBER
CHECK TYPE amount IS NUMBER
RETURN amount * 2
END
END
NEW Player player
DO player.total 3