typecheck: reject duplicate object methods

This commit is contained in:
Hermes Agent
2026-09-16 01:24:40 +00:00
parent aac07309e1
commit edcfd697f6
6 changed files with 22 additions and 5 deletions
@@ -0,0 +1,12 @@
CLASS Player
TEACH show
SAY "first"
END
TEACH show
SAY "second"
END
END
NEW Player player
DO player.show