typecheck: validate missing method args

This commit is contained in:
Hermes Agent
2026-09-01 15:24:24 +00:00
parent 48189afd80
commit 246a5a28b2
6 changed files with 30 additions and 3 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
DO player.add