typecheck: validate CALL unknown methods

This commit is contained in:
Hermes Agent
2026-09-02 18:10:02 +00:00
parent bbb5787e80
commit f2acef6a12
6 changed files with 19 additions and 4 deletions
@@ -0,0 +1,11 @@
CLASS Player
HAS score NUMBER
TEACH add points
CHECK TYPE points IS NUMBER
SET score score + points
END
END
NEW Player player
CALL player.fly WITH 5