typecheck: diagnose CALL method before NEW

This commit is contained in:
Hermes Agent
2026-09-01 05:07:58 +00:00
parent a5c78cbfe1
commit 8153aed9cb
7 changed files with 20 additions and 5 deletions
@@ -0,0 +1,10 @@
CLASS Player
HAS score NUMBER
TEACH add points
CHECK TYPE points IS NUMBER
SET score score + points
END
END
CALL player.add WITH 5