typecheck: validate object method returns

This commit is contained in:
Hermes Agent
2026-09-08 21:36:00 +00:00
parent 8fe57974c6
commit 9d4cffa6f6
8 changed files with 53 additions and 9 deletions
+8
View File
@@ -0,0 +1,8 @@
CLASS Player
TEACH score amount RETURNS NUMBER
RETURN "oops"
END
END
NEW Player player
DO player.score 4
+8
View File
@@ -0,0 +1,8 @@
CLASS Player
TEACH score amount RETURNS NUMBER
RETURN amount
END
END
NEW Player player
DO player.score 4