test: cover compatibility method return types

This commit is contained in:
Hermes Agent
2026-09-09 16:09:14 +00:00
parent 762fde4379
commit 81c4ff4177
4 changed files with 18 additions and 1 deletions
@@ -0,0 +1,9 @@
CLASS Player
TEACH score TAKES amount RETURNS NUMBER
CHECK TYPE amount IS NUMBER
RETURN "oops"
LEARNED
ENDCLASS
NEW Player player
CALL player.score WITH 4