typecheck: handle later class methods

This commit is contained in:
Hermes Agent
2026-09-02 05:49:51 +00:00
parent 614fffbb62
commit 0839bdeb5d
6 changed files with 22 additions and 4 deletions
@@ -0,0 +1,15 @@
CLASS Player
HAS score NUMBER
TEACH show
SAY score
END
TEACH add points
CHECK TYPE points IS NUMBER
SET score score + points
END
END
NEW Player player
DO player.add "five"