test: cover method return addition diagnostics

This commit is contained in:
Hermes Agent
2026-09-12 06:05:10 +00:00
parent a6d93a195a
commit ce28a6eb1c
7 changed files with 27 additions and 4 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