typecheck: diagnose CALL method before NEW typos

This commit is contained in:
Hermes Agent
2026-09-01 11:18:58 +00:00
parent 73f5395b28
commit a9612c5074
7 changed files with 22 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.fly WITH 5