typecheck: preserve later method arity checks

This commit is contained in:
Hermes Agent
2026-09-02 07:53:04 +00:00
parent 0839bdeb5d
commit b8385f675a
7 changed files with 23 additions and 5 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 5, 6