typecheck: diagnose extra method args

This commit is contained in:
Hermes Agent
2026-09-01 23:39:41 +00:00
parent d5945bed35
commit eed3136439
7 changed files with 31 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
DO player.add 5, 6